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

Method free

nodedb/src/engine/kv/slab.rs:82–86  ·  view source on GitHub ↗

Free a slot by index.

(&mut self, slot_idx: u32)

Source from the content-addressed store, hash-verified

80
81 /// Free a slot by index.
82 fn free(&mut self, slot_idx: u32) {
83 debug_assert!((slot_idx as usize) < self.total_slots);
84 self.free_list.push(slot_idx);
85 self.occupied -= 1;
86 }
87
88 /// Read data from a slot.
89 fn get(&self, slot_idx: u32, len: usize) -> &[u8] {

Callers 4

basic_alloc_get_freeFunction · 0.45
large_object_fallbackFunction · 0.45
free_value_fromFunction · 0.45

Calls 4

is_large_handleFunction · 0.85
decode_large_handleFunction · 0.85
decode_handleFunction · 0.85
pushMethod · 0.45

Tested by 3

basic_alloc_get_freeFunction · 0.36
large_object_fallbackFunction · 0.36