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.

struct RegionAllocator
bool
resize
(
const(void)* ptr
,
size_t newSize
)

Return Value

Type: bool

True if the block was successfully resized, false otherwise.

Meta