Function libmimalloc_sys::mi_heap_contains_block
source · pub unsafe extern "C" fn mi_heap_contains_block(
heap: *mut mi_heap_t,
p: *const c_void,
) -> bool
Expand description
Does a heap contain a pointer to a previously allocated block?
p
must be a pointer to a previously allocated block (in any heap) – it cannot be some
random pointer!
Returns true
if the block pointed to by p
is in the heap
.
See mi_heap_check_owned
.