MCPcopy Create free account
hub / github.com/dermesser/integer-encoding-rs / finished

Method finished

src/reader.rs:59–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

57 Ok(())
58 }
59 fn finished(&self) -> bool {
60 self.i > 0 && (self.buf[self.i - 1] & MSB == 0)
61 }
62 fn decode<VI: VarInt>(&self) -> Option<VI> {
63 Some(VI::decode_var(&self.buf[0..self.i])?.0)
64 }

Callers 2

read_varint_asyncMethod · 0.80
read_varintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected