Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_bytes
Method · 0.45
read_log_segment_from_bytes
Function · 0.45
Calls
1
len
Method · 0.45
Tested by
no test coverage detected