GC.getAttr

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.

  1. uint getAttr(void* p)
  2. uint getAttr(void* p)
    struct GC
    extern (D) static pure nothrow
    uint
    getAttr
    (
    void* p
    )

Parameters

p void*

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

Return Value

Type: uint

A bit field containing any bits set for the memory block referenced by p or zero on error.

Meta