MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / remaining

Method remaining

nodedb/src/engine/timeseries/reader.rs:52–54  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50 }
51
52 fn remaining(&self) -> usize {
53 self.data.len().saturating_sub(self.pos)
54 }
55
56 fn read_bytes(&mut self, n: usize) -> Option<&'a [u8]> {
57 if self.remaining() < n {

Callers 2

read_bytesMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected