UnitRC
library
Constants
-
calloc
→ const CallocAllocator
-
Manages memory on the native heap.
-
malloc
→ const MallocAllocator
-
Manages memory on the native heap.
Functions
-
createInt64PointerFromInt8List(List<int> data)
→ Pointer<Int64>
-
-
createReceivePort()
→ int
-
-
createUint8PointerFromString(String data)
→ StringFFI
-
-
createUint8PointerFromUint8List(List<int> data)
→ Pointer<Uint8>
-
-
ffiCreateString(String? value)
→ Pointer<Uint8ListFFI>
-
-
ffiCreateStringList(List<String> data)
→ Pointer<Uint8ListArrayFFI>
-
-
ffiCreateUint8List(Uint8List? value)
→ Pointer<Uint8ListFFI>
-
-
ffiCreateUint8ListArray(List<Uint8List> data)
→ Pointer<Uint8ListArrayFFI>
-
-
ffiFreeString(Pointer<Uint8ListFFI> pointer)
→ void
-
-
ffiFreeStringList(Pointer<Uint8ListArrayFFI> pointer)
→ void
-
-
ffiFreeUint8List(Pointer<Uint8ListFFI> pointer)
→ void
-
-
ffiGetString(Pointer<Uint8ListFFI> value, {bool free = false})
→ String
-
-
ffiGetStringList(Pointer<Uint8ListArrayFFI> value, {bool free = false})
→ List<String>
-
-
ffiGetStringNullable(Pointer<Uint8ListFFI> value, {bool free = false})
→ String?
-
-
ffiGetUint8List(Pointer<Uint8ListFFI> value, {bool free = false})
→ Uint8List
-
-
ffiGetUint8ListArray(Pointer<Uint8ListArrayFFI> value)
→ List<Uint8List>
-
-
ffiGetUint8ListNullable(Pointer<Uint8ListFFI> value, {bool free = false})
→ Uint8List?
-
-
requestExecuteCallback(dynamic message)
→ void
-
-
urRunBridge<T extends DartBaseClass>(Object? object, String context, dynamic func(T), {dynamic defValue = null, bool nonnullable = false, bool multiApplicationCheck = false, bool reportError = true})
→ dynamic
-
-
urRunBridgeStatic(Zone? zone, Function? f, String context, dynamic func(Function), {dynamic defValue = null, bool nonnullable = false, bool multiApplicationCheck = false, bool reportError = true})
→ dynamic
-
-
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.