UnitRC library

Classes

Arena
An Allocator which frees all allocations at the same time.
ByteBuffer
ByteBufferCpp
DartObjectInfo
FFIType
Int64ArrayFFI
InternalClassList
InternalClassListBridge
InternalClassListCpp
InternalClassListDart
NotifyHelper
SharedMemoryBase<T>
SharedMemoryIndexHolder
SharedMemoryInt64
StringFFI
Uint8ListArrayFFI
Uint8ListFFI
UnitRCApplication
UnitRCDartRuntime
UnitRCError
UnitRCLibrary
UnitRCLog
Utf16
The contents of a native zero-terminated array of UTF-16 code units.
Utf8
The contents of a native zero-terminated array of UTF-8 code units.
WeakPtr<T extends DartBaseClass>

Extensions

ByteBufferInternalClassListEx on InternalClassList
StringUtf16Pointer on String
Extension method for converting a String to a Pointer<Utf16>.
StringUtf8Pointer on String
Extension method for converting a String to a Pointer<Utf8>.
Utf16Pointer on Pointer<Utf16>
Extension method for converting aPointer<Utf16> to a String.
Utf8Pointer on Pointer<Utf8>
Extension method for converting aPointer<Utf8> to a String.

Constants

calloc → const CallocAllocator
Manages memory on the native heap.
malloc → const MallocAllocator
Manages memory on the native heap.

Properties

unitRCLib DynamicLibrary
latefinal
zoneArena Arena
A zone-specific Arena.
no setter

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.