Function libmimalloc_sys::mi_is_in_heap_region
source · pub unsafe extern "C" fn mi_is_in_heap_region(
p: *const c_void,
) -> bool
Expand description
Returns true if this is a pointer into a memory region that has been reserved by the mimalloc heap.
This function is described by the mimalloc documentation as “relatively fast”.
See also mi_heap_check_owned
, which is (much) slower and slightly
more precise, but only concerns a single mi_heap
.