PureGCAllocator.resolveInternalPointer

Standard allocator methods per the semantics defined above. The deallocate and reallocate methods are @system because they may move memory around, leaving dangling pointers in user code.

  1. void[] allocate(size_t bytes)
  2. bool expand(void[] b, size_t delta)
  3. bool reallocate(void[] b, size_t newSize)
  4. Ternary resolveInternalPointer(void* p, void[] result)
    struct PureGCAllocator
    pure nothrow @trusted @nogc shared const
    Ternary
    resolveInternalPointer
    (
    const void* p
    ,
    ref void[] result
    )
  5. bool deallocate(void[] b)
  6. size_t goodAllocSize(size_t n)

Meta