GC.setAttr

Sets the specified bits for the memory references 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, no action will be performed.

  1. uint setAttr(void* p, uint a)
    struct GC
    extern (D) static nothrow
    uint
    setAttr
    (
    const scope void* p
    ,
    uint a
    )
  2. uint setAttr(void* p, uint a)

Parameters

p void*

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

a uint

A bit field containing any bits to set for this memory block.

Return Value

Type: uint

The result of a call to getAttr after the specified bits have been set.

Suggestion Box / Bug Report