Function cudb::mmapv1::block::alloc_size[][src]

pub fn alloc_size(data_size: Size) -> Size
Expand description

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.