GC.getAttr

uint getAttr( const scope void * p ) nothrow

Returns 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

pA 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

p or zero on error.

uint getAttr(void * p) pure nothrow

ditto