Function RegionAllocator.resize

Attempts to resize a previously allocated block of memory in place. This is possible only if ptr points to the beginning of the last block allocated by this RegionAllocator instance and, in the case where newSize is greater than the old size, there is additional space in the segment that ptr was allocated from. Additionally, blocks larger than this RegionAllocator's segment size cannot be grown or shrunk.

bool resize (
  const(void)* ptr,
  ulong newSize
);

Returns

True if the block was successfully resized, false otherwise.