fn reset(self: *ArenaAllocator, mode: ResetMode) bool
[src]
Resets the arena allocator and frees all allocated memory.
mode
defines how the currently allocated memory is handled. See the variant documentation for ResetMode
for the effects of each mode.
The function will return whether the reset operation was successful or not. If the reallocation failed false
is returned. The arena will still be fully functional in that case, all memory is released. Future allocations just might be slower.
NOTE: If mode
is free_mode
, the function will always return true
.