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

Method bytes_total

src/lib.rs:83–85  ·  view source on GitHub ↗

The total size of this allocation, free and used.

(&self)

Source from the content-addressed store, hash-verified

81
82 /// The total size of this allocation, free and used.
83 pub fn bytes_total(&self) -> usize {
84 unsafe { self.top.offset_from(self.bottom) as usize }
85 }
86
87 /// Creates a new PoolAlloc of a specific size.
88 pub fn new(size_in_bytes: usize) -> PoolAlloc {

Callers 2

dropMethod · 0.80
total_bytes_allocatedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected