AlignedMallocator.alignedReallocate

On Posix there is no realloc for aligned memory, so alignedReallocate emulates the needed behavior by using alignedAllocate to get a new block. The existing block is copied to the new block and then freed. On Windows, calls __aligned_realloc(b.ptr, newSize, a).

  1. bool alignedReallocate(void[] b, size_t s, uint a)
    struct AlignedMallocator
    version(Windows)
    @system @nogc nothrow shared
    bool
    alignedReallocate
    (
    ref void[] b
    ,
    size_t s
    ,
    uint a
    )
  2. bool alignedReallocate(void[] b, size_t s, uint a)

Meta