Skip to main content

allocation_size

Function allocation_size 

Source
pub fn allocation_size(len: usize) -> Option<usize>
Expand description

The bytes the allocator charges (in active) for a buffer of len bytes: its size class (256-byte steps up to one page, whole pages beyond); None if that overflows.