ffi/src/arena library

Classes

Arena
An Allocator which frees all allocations at the same time.

Properties

zoneArena Arena
A zone-specific Arena.
no setter

Functions

using<R>(R computation(Arena), [Allocator wrappedAllocator = calloc]) → R
Runs computation with a new Arena, and releases all allocations at the end.
withZoneArena<R>(R computation(), [Allocator wrappedAllocator = calloc]) → R
Creates a zoned Arena to manage native resources.