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

Method read_exact

nodedb-wal/src/lazy_reader.rs:167–171  ·  view source on GitHub ↗
(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

165 }
166
167 fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {
168 self.file.read_exact(buf)?;
169 self.offset += buf.len() as u64;
170 Ok(())
171 }
172}
173
174/// Open a WAL segment for lazy reading and iterate with a callback.

Callers 2

next_headerMethod · 0.45
read_payloadMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected