get_allocated_size

Function get_allocated_size 

Source
pub fn get_allocated_size() -> u64
Expand description

Returns the amount of allocated stable memory in bytes.

Always equal to get_available_size() - get_free_size().

Internally calls StableMemoryAllocator::get_allocated_size.

ยงPanics

Panics if there is no initialized stable memory allocator.