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

Method read_record

nodedb-wal/src/lazy_reader.rs:140–146  ·  view source on GitHub ↗

Read the payload and return a full WalRecord.

(&mut self, header: &RecordHeader)

Source from the content-addressed store, hash-verified

138
139 /// Read the payload and return a full WalRecord.
140 pub fn read_record(&mut self, header: &RecordHeader) -> Result<WalRecord> {
141 let payload = self.read_payload(header)?;
142 Ok(WalRecord {
143 header: *header,
144 payload,
145 })
146 }
147
148 /// Skip the payload for a header, seeking forward without reading.
149 ///

Callers

nothing calls this directly

Calls 1

read_payloadMethod · 0.80

Tested by

no test coverage detected