get_available_size

Function get_available_size 

Source
pub fn get_available_size() -> u64
Expand description

Returns the amount of stable memory in bytes which is under the allocator’s management.

Always equals to stable64_size() - 8.

Internally calls StableMemoryAllocator::get_available_size.

§Panics

Panics if there is no initialized stable memory allocator.