GC.query

BlkInfo query(return scope const void * p) nothrow

Returns aggregate information about the memory block containing p. If p references memory not originally allocated by this garbage collector, if p is null, or if the garbage collector does not support this operation, BlkInfo.init will be returned. Typically, support for this operation is dependent on support for addrOf.

Parameters

pA pointer to the root or the interior of a valid memory block or to null.

Returns

Information regarding the memory block referenced by p or BlkInfo.init

on error.

BlkInfo query(return scope void * p) pure nothrow

ditto