fn resize(self: Allocator, old_mem: anytype, new_n: usize) bool

Requests to modify the size of an allocation. It is guaranteed to not move the pointer, however the allocator implementation may refuse the resize request by returning false.

Parameters

self: Allocator,
old_mem: anytype,
new_n: usize,