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

Method free

nodedb/src/bridge/slab.rs:116–119  ·  view source on GitHub ↗

Free a slab page, returning it to the pool.

(&mut self, id: SlabId)

Source from the content-addressed store, hash-verified

114
115 /// Free a slab page, returning it to the pool.
116 pub fn free(&mut self, id: SlabId) {
117 assert_eq!(id.core_id, self.core_id, "slab ID core mismatch");
118 self.free_list.push(id.page_index);
119 }
120
121 /// Number of available (free) pages.
122 pub fn available(&self) -> usize {

Callers 1

free_and_reuseFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

free_and_reuseFunction · 0.36