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

Method available

nodedb/src/bridge/slab.rs:122–124  ·  view source on GitHub ↗

Number of available (free) pages.

(&self)

Source from the content-addressed store, hash-verified

120
121 /// Number of available (free) pages.
122 pub fn available(&self) -> usize {
123 self.free_list.len()
124 }
125
126 /// Total allocation count (for metrics).
127 pub fn alloc_count(&self) -> u64 {

Callers 1

utilizationMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected