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

Method capacity_bytes

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

Total memory consumed by this tier (backing buffer).

(&self)

Source from the content-addressed store, hash-verified

93
94 /// Total memory consumed by this tier (backing buffer).
95 fn capacity_bytes(&self) -> usize {
96 self.buf.len()
97 }
98
99 /// Memory actively occupied (occupied_slots * slot_size).
100 fn occupied_bytes(&self) -> usize {

Callers 2

capacityMethod · 0.80
tier_statsMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected