UnitRC library

Classes

Arena
An Allocator which frees all allocations at the same time.
ByteBuffer
ByteBufferCpp
DartObjectInfo
FFIType
Int64ArrayFFI
InternalClassList
InternalClassListBridge
InternalClassListCpp
InternalClassListDart
NotifyHelper
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 Allocator
Manages memory on the native heap.
malloc → const Allocator
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>
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.