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

Method is_empty

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

Whether the buffer has no written data.

(&self)

Source from the content-addressed store, hash-verified

134
135 /// Whether the buffer has no written data.
136 pub fn is_empty(&self) -> bool {
137 self.len == 0
138 }
139
140 /// Total capacity of the buffer.
141 pub fn capacity(&self) -> usize {

Callers 11

submitMethod · 0.45
pwrite_allFunction · 0.45
openMethod · 0.45
set_encryption_ringMethod · 0.45
syncMethod · 0.45
flush_bufferMethod · 0.45
next_recordMethod · 0.45
read_payloadMethod · 0.45
set_encryption_keyMethod · 0.45
submit_and_syncMethod · 0.45
submit_and_wait_writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected