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

Method decode

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

Source from the content-addressed store, hash-verified

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 }
65}
66
67#[cfg(any(feature = "tokio_async", feature = "futures_async"))]

Callers 2

read_varint_asyncMethod · 0.80
read_varintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected