pub fn deallocate(slice: SSlice)Expand description
Deallocates an already allocated SSlice freeing it’s memory.
Supplied SSlice get’s transformed into FreeBlock and then an attempt to merge it with neighboring (physically) free blocks is performed.
Internally calls StableMemoryAllocator::deallocate.
§Example
let slice = allocate(100).expect("Out of memory");
deallocate(slice);§Panics
Panics if there is no initialized stable memory allocator.