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

Method read_exact

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

Source from the content-addressed store, hash-verified

157 }
158
159 fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {
160 self.file.read_exact(buf)?;
161 self.offset += buf.len() as u64;
162 Ok(())
163 }
164}
165
166/// Attempt to read a WAL segment preamble from the start of a file.

Callers 15

openMethod · 0.45
next_recordMethod · 0.45
try_read_preambleFunction · 0.45
sendMethod · 0.45
handshake_on_duplexFunction · 0.45
read_envelopeFunction · 0.45
read_framedFunction · 0.45
read_frameFunction · 0.45
read_frameFunction · 0.45
read_framedFunction · 0.45

Calls 1

lenMethod · 0.45