Function libmimalloc_sys::mi_good_size
source ยท pub unsafe extern "C" fn mi_good_size(size: usize) -> usize
Expand description
Return the used allocation size.
Returns the size n
that will be allocated, where n >= size
.
Generally, mi_usable_size(mi_malloc(size)) == mi_good_size(size)
. This
can be used to reduce internal wasted space when allocating buffers for
example.
See mi_usable_size
.