Function libmimalloc_sys::mi_heap_contains_block[][src]

pub unsafe extern "C" fn mi_heap_contains_block(
    heap: *mut mi_heap_t,
    p: *const c_void
) -> bool

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.