GCAllocator.reallocate

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)
    struct GCAllocator
    static pure nothrow @system
    bool
    reallocate
    ()
    (
    ref void[] b
    ,
    size_t newSize
    )
  4. Ternary resolveInternalPointer(void* p, void[] result)
  5. bool deallocate(void[] b)
  6. size_t goodAllocSize(size_t n)

Meta