voltron_ffi library

Classes

FfiManager
Pair<T1, T2>
Work

Extensions

MapEx on Map
ObjEx on Object

Functions

allocate<T extends NativeType>(int byteCount) Pointer<T>
decodeObject(Pointer<Uint8> buffer, int length) Object?
encodeObject(Object? object) Pair<Pointer<Uint8>, int>?
free(Pointer<NativeType> pointer) → void
generateCallback(CommonCallback callback) int
globalCallback(int callbackId, Pointer<Uint8> result, int length) → void
loadLibrary(String name, {String? path, bool isStatic = false}) DynamicLibrary
requestExecuteCallback(dynamic message) → void

Typedefs

AddCallFuncDartType<T extends Function> = int Function(int ffiId, Pointer<Utf16> registerHeader, int type, Pointer<NativeFunction<T>> func)
AddCallFuncNativeType<T extends Function> = Int32 Function(Uint32 ffiId, Pointer<Utf16> registerHeader, Int32 type, Pointer<NativeFunction<T>> func)
CommonCallback = void Function(dynamic value)
ExecuteCallbackDartType = void Function(Pointer<Work>)
ExecuteCallbackNativeType = Void Function(Pointer<Work>)
GlobalCallback = Void Function(Int32 callbackId, Pointer<Uint8> result, Int32 len)
InitFfiDartType = int Function(Pointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>> functionPointer, int port)
InitFfiNativeType = Uint32 Function(Pointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>> functionPointer, Int64 port)