GC.addrOf
inout(void) * addrOf( inout(void) * p ) nothrow @nogc pure @trustedReturns the base address of the memory block containing p. This value is useful to determine whether p is an interior pointer, and the result may be passed to routines such as sizeOf which may otherwise fail. 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, null will be returned.
Parameters
p | A pointer to the root or the interior of a valid memory block or to null. |
Returns
The base address of the memory block referenced by p or null on error.
void * addrOf(void * p) pure nothrow @nogc @trustedditto