The OpenD Programming Language

GC.query

Returns aggregate information about the memory block containing p. 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, BlkInfo.init will be returned. Typically, support for this operation is dependent on support for addrOf.

  1. BlkInfo query(void* p)
    struct GC
    extern (D) static nothrow
    query
    (
    return scope const void* p
    )
  2. BlkInfo query(void* p)

Parameters

p void*

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

Return Value

Type: BlkInfo

Information regarding the memory block referenced by p or BlkInfo.init on error.

Meta