Function tikv_jemalloc_sys::nallocx

source ·
pub unsafe extern "C" fn nallocx(size: size_t, flags: c_int) -> size_t
Expand description

Returns the real size of the allocation that would result from a mallocx function call with the same arguments.

§Errors

If the inputs exceed the maximum supported size class and/or alignment it returns zero.

§Safety

The behavior is undefined if size == 0.