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 ArrayViews. This can significantly improve performance and it makes memory management simpler. [...]
Array<T extends NativeType>
Thin wrapper around a Pointer and its associated typed list. It is meant to be used with extensions like Uint8Array. It can be extended to implement a different allocator or deallocator.
ArrayRef<T extends NativeType>
Reference to a SharedArray.
ArrayView<T extends NativeType>
Wrapper for an Array with an empty delete method.
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

Typedefs

GetView<T extends NativeType>(Pointer<T> ptr, int length) List<int>