MCPcopy Create free account
hub / github.com/That3Percent/second-stack / bytes_used

Method bytes_used

src/lib.rs:78–80  ·  view source on GitHub ↗

The size of all slices in use. This is <= bytes_total()

(&self)

Source from the content-addressed store, hash-verified

76
77 /// The size of all slices in use. This is <= bytes_total()
78 pub fn bytes_used(&self) -> usize {
79 unsafe { self.current.offset_from(self.bottom) as usize }
80 }
81
82 /// The total size of this allocation, free and used.
83 pub fn bytes_total(&self) -> usize {

Callers 1

acquireMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected