DoxigAlpha

deinit

Destroys the memory pool and frees all allocated memory.

Function parameters

Parameters

#
pool:*Pool

Type definitions in this namespace

Types

#

A memory pool that can allocate objects of a single type very quickly.

Functions

#
MemoryPool
A memory pool that can allocate objects of a single type very quickly.
MemoryPoolAligned
A memory pool that can allocate objects of a single type very quickly.
MemoryPoolExtra
A memory pool that can allocate objects of a single type very quickly.

Error sets in this namespace

Error Sets

#

Source

Implementation

#
pub fn deinit(pool: *Pool) void {
    pool.arena.deinit();
    pool.* = undefined;
}