ffi_helper library

Classes

Arena<T extends NativeType>
Instead of doing many little allocations, Arena allocates a large chunk of memory which can be sliced into multiple Arrays. When all operations have finished, the Arena can be deleted and it frees all memory in one operation. This can significantly improve performance and it makes memory management simpler when dealing with many allocations. [...]
Array<T extends NativeType>
Thin wrapper around a Pointer and its associated typed list. For a more type safe and convenient method to construct Array have a look at the extensions like Uint8Array.
ArrayRef<T extends NativeType>
Reference to a SharedArray.
SharedArray<T extends NativeType>
Instead of allocating many arrays, share one array which gets deleted when all references to it got deleted. This can lead to better performance and reduced memory usage. [...]

Extensions

SharedUint8Array
Uint8Arena
Uint8Array