mi_heap_contains_block

Does a heap contain a pointer to a previously allocated block?

extern (C) @nogc pure @system nothrow
bool
mi_heap_contains_block
(,
const(void)* p
)

Parameters

heap mi_heap_t*

The heap.

p const(void)*

Pointer to a previously allocated block (in any heap)– cannot be some random pointer!

Return Value

Type: bool

true if the block pointed to by p is in the heap.

Meta