mmapv1::[−][src] block:: alloc_size
pub fn alloc_size(data_size: Size) -> Size
Get the real allocation size (capacity) for a given size data (not including header). This is the smallest power of two (bytes) that will contain the data and header.
Note that a document may be shrunken, in which case this may not be the smallest power of two that can fit the data.