mi_heap_check_owned

Check safely if any pointer is part of a heap.

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

Parameters

heap mi_heap_t*

The heap.

p const(void)*

Any pointer – not required to be previously allocated by us.

Return Value

Type: bool

true if p points to a block in heap.

Note: expensive function, linear in the pages in the heap.

Meta