p or zero on error.
GC.getAttr
uint getAttr( const scope void * p ) nothrowReturns a bit field representing all block attributes set for the memory referenced by p. If p references memory not originally allocated by this garbage collector, points to the interior of a memory block, or if p is null, zero will be returned.
Parameters
p | A pointer to the root of a valid memory block or to null. |
Returns
A bit field containing any bits set for the memory block referenced by
uint getAttr(void * p) pure nothrowditto