Pool module

get

procedure · 1 overloadSource

Returns nbytes bytes aligned to the pool's alignment, or null when the underlying allocator fails or the size is too large to represent.

The memory is uninitialized and stays valid until reset or release. A size of zero is fine. A non-power-of-two alignment or a negative size fails an assert.

get :: (pool: *Pool, nbytes: s64) -> *void

Returns nbytes bytes aligned to the pool's alignment, or null when the underlying allocator fails or the size is too large to represent.

The memory is uninitialized and stays valid until reset or release. A size of zero is fine. A non-power-of-two alignment or a negative size fails an assert.

Parameters

pool: *Pool
nbytes: s64

Returns

*void

See also