Returns nbytes bytes from the pool, aligned to its alignment. The memory is not cleared. Running out of the reserved
range fails an assert.
pool: Flat_Pool;
defer fini(*pool);
a := cast(*int) get(*pool, size_of(int));
a.* = 3;
assert(a.* == 3);Doesn't run in the browser (skipped on wasm).
get :: (pool: *Flat_Pool, nbytes: s64) -> *void
Parameters
- pool: *Flat_Pool
- nbytes: s64
Returns
- *void