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

Method clear

nodedb-wal/src/align.rs:126–128  ·  view source on GitHub ↗

Reset the buffer for reuse without deallocating.

(&mut self)

Source from the content-addressed store, hash-verified

124
125 /// Reset the buffer for reuse without deallocating.
126 pub fn clear(&mut self) {
127 self.len = 0;
128 }
129
130 /// Current number of bytes written.
131 pub fn len(&self) -> usize {

Callers 15

start_electionMethod · 0.45
become_followerMethod · 0.45
write_record_deferredMethod · 0.45
flushMethod · 0.45
flush_bufferMethod · 0.45
submit_and_wait_writeMethod · 0.45
compactMethod · 0.45
remove_node_edgesMethod · 0.45
pre_filter_equalityFunction · 0.45
pre_filter_orFunction · 0.45
snapshot_roundtripFunction · 0.45

Calls

no outgoing calls

Tested by 5

pre_filter_equalityFunction · 0.36
pre_filter_orFunction · 0.36
snapshot_roundtripFunction · 0.36
compact_integer_encodingFunction · 0.36