thermion_dart/compatibility/native/compatibility library

Classes

Abi
An application binary interface (ABI).
AbiSpecificInteger
The supertype of all Abi-specific integer types.
AbiSpecificIntegerMapping
Mapping for a subtype of AbiSpecificInteger.
Allocator
Manages memory on the native heap.
Arena
An Allocator which frees all allocations at the same time.
Array<T extends NativeType>
A fixed-sized array of Ts.
Bool
Represents a native bool in C.
Char
The C char type.
Compatibility
Dart_CObject
Opaque, not exposing it's members.
DartRepresentationOf
DefaultAsset
Annotation specifying the default asset ID for the current library.
Double
Represents a native 64 bit double in C.
DynamicLibrary
A dynamically loaded native library.
Finalizable
Marker interface for objects which should not be finalized too soon.
Float
Represents a native 32 bit float in C.
Handle
Represents Dart_Handle from dart_api.h in C.
Int
The C int type.
Int16
Represents a native signed 16 bit integer in C.
Int32
Represents a native signed 32 bit integer in C.
Int64
Represents a native signed 64 bit integer in C.
Int8
Represents a native signed 8 bit integer in C.
IntPtr
The C intptr_t type.
Long
The C long int, aka. long, type.
LongLong
The C long long type.
Native<T>
Annotation binding an external declaration to its native implementation.
NativeApi
Utilities for accessing the Dart VM API from Dart code or from C code via dart_api_dl.h.
NativeCallable<T extends Function>
A native callable which listens for calls to a native function.
NativeFinalizer
A native finalizer which can be attached to Dart objects.
NativeFunction<T extends Function>
Represents a function type in C.
NativeType
NativeType's subtypes represent a native type in C.
Opaque
Opaque's subtypes represent opaque types in C.
Packed
Annotation to specify on Struct subtypes to indicate that its members need to be packed.
Pointer<T extends NativeType>
Represents a pointer into the native C memory. Cannot be extended.
ResourceBuffer
ResourceLoaderWrapper
Short
The C short type.
SignedChar
The C signed char type.
Size
The C size_t type.
SizedNativeType
A NativeType with a known size.
Struct
The supertype of all FFI struct types.
Uint16
Represents a native unsigned 16 bit integer in C.
Uint32
Represents a native unsigned 32 bit integer in C.
Uint64
Represents a native unsigned 64 bit integer in C.
Uint8
Represents a native unsigned 8 bit integer in C.
UintPtr
The C uintptr_t type.
Union
The supertype of all FFI union types.
UnsignedChar
The C unsigned char type.
UnsignedInt
The C unsigned int type.
UnsignedLong
The C unsigned long int, aka. unsigned long, type.
UnsignedLongLong
The C unsigned long long type.
UnsignedShort
The C unsigned short type.
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.
VarArgs<T extends Record>
The types of variadic arguments passed in C.
Void
Represents a void type in C.
WChar
The C wchar_t type.

Extensions

AbiSpecificIntegerArray on Array<T>
Bounds checking indexing methods on Arrays of AbiSpecificInteger.
AbiSpecificIntegerPointer on Pointer<T>
Extension on Pointer specialized for the type argument AbiSpecificInteger.
AllocatorAlloc on Allocator
Extension on Allocator to provide allocation with NativeType.
ArrayAddress on Array<T>
ArrayArray on Array<Array<T>>
Bounds checking indexing methods on Arrays of Array.
BoolAddress on bool
BoolArray on Array<Bool>
Bounds checking indexing methods on Arrays of Bool.
BoolPointer on Pointer<Bool>
Extension on Pointer specialized for the type argument Bool.
DoubleAddress on double
DoubleArray on Array<Double>
Bounds checking indexing methods on Arrays of Double.
DoublePointer on Pointer<Double>
Extension on Pointer specialized for the type argument Double.
DynamicLibraryExtension on DynamicLibrary
Method which must not be invoked dynamically.
Float32ListAddress on Float32List
Float64ListAddress on Float64List
FloatArray on Array<Float>
Bounds checking indexing methods on Arrays of Float.
FloatPointer on Pointer<Float>
Extension on Pointer specialized for the type argument Float.
Int16Array on Array<Int16>
Bounds checking indexing methods on Arrays of Int16.
Int16ListAddress on Int16List
Int16Pointer on Pointer<Int16>
Extension on Pointer specialized for the type argument Int16.
Int32Array on Array<Int32>
Bounds checking indexing methods on Arrays of Int32.
Int32ListAddress on Int32List
Int32Pointer on Pointer<Int32>
Extension on Pointer specialized for the type argument Int32.
Int64Array on Array<Int64>
Bounds checking indexing methods on Arrays of Int64.
Int64ListAddress on Int64List
Int64Pointer on Pointer<Int64>
Extension on Pointer specialized for the type argument Int64.
Int8Array on Array<Int8>
Bounds checking indexing methods on Arrays of Int8.
Int8ListAddress on Int8List
Int8Pointer on Pointer<Int8>
Extension on Pointer specialized for the type argument Int8.
IntAddress on int
NativeFunctionPointer on Pointer<NativeFunction<NF>>
Extension on Pointer specialized for the type argument NativeFunction.
NativePort on SendPort
Extension to retrieve the native Dart_Port from a SendPort.
PointerArray on Array<Pointer<T>>
Bounds checking indexing methods on Arrays of Pointer.
PointerPointer on Pointer<Pointer<T>>
Extension on Pointer specialized for the type argument Pointer.
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>.
StructAddress on T
StructArray on Array<T>
Bounds checking indexing methods on Arrays of Struct.
StructPointer on Pointer<T>
Extension on Pointer specialized for the type argument Struct.
Uint16Array on Array<Uint16>
Bounds checking indexing methods on Arrays of Uint16.
Uint16ListAddress on Uint16List
Uint16Pointer on Pointer<Uint16>
Extension on Pointer specialized for the type argument Uint16.
Uint32Array on Array<Uint32>
Bounds checking indexing methods on Arrays of Uint32.
Uint32ListAddress on Uint32List
Uint32Pointer on Pointer<Uint32>
Extension on Pointer specialized for the type argument Uint32.
Uint64Array on Array<Uint64>
Bounds checking indexing methods on Arrays of Uint64.
Uint64ListAddress on Uint64List
Uint64Pointer on Pointer<Uint64>
Extension on Pointer specialized for the type argument Uint64.
Uint8Array on Array<Uint8>
Bounds checking indexing methods on Arrays of Uint8.
Uint8ListAddress on Uint8List
Uint8Pointer on Pointer<Uint8>
Extension on Pointer specialized for the type argument Uint8.
UnionAddress on T
UnionArray on Array<T>
Bounds checking indexing methods on Arrays of Union.
UnionPointer on Pointer<T>
Extension on Pointer specialized for the type argument Union.
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.
false1 → const int
malloc → const MallocAllocator
Manages memory on the native heap.
true1 → const int

Properties

allocator → CallocAllocator
final
nullptr Pointer<Never>
Represents a pointer into the native C memory corresponding to 'NULL', e.g. a pointer with address 0.
final
zoneArena Arena
A zone-specific Arena.
no setter

Functions

add_animation_component(Pointer<Void> sceneManager, int entityId) bool
add_bone_animation(Pointer<Void> sceneManager, int entity, int skinIndex, int boneIndex, Pointer<Float> frameData, int numFrames, double frameLengthInMs, double fadeOutInSecs, double fadeInInSecs, double maxDelta) → void
add_collision_component(Pointer<Void> sceneManager, int entityId, Pointer<NativeFunction<Void Function(Int entityId1, Int entityId2)>> callback, bool affectsCollidingTransform) → void
add_light(Pointer<Void> viewer, int type, double colour, double intensity, double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double falloffRadius, double spotLightConeInner, double spotLightConeOuter, double sunAngularRadius, double sunHaloSize, double sunHaloFallof, bool shadows) int
add_light_ffi(Pointer<Void> viewer, int type, double colour, double intensity, double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double falloffRadius, double spotLightConeInner, double spotLightConeOuter, double sunAngularRadius, double sunHaloSize, double sunHaloFallof, bool shadows, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
apply_weights(Pointer<Void> sceneManager, int entity, Pointer<Char> entityName, Pointer<Float> weights, int count) → void
apply_weights_ffi(Pointer<Void> sceneManager, int asset, Pointer<Char> entityName, Pointer<Float> weights, int count) → void
clear_background_image(Pointer<Void> viewer) → void
clear_background_image_ffi(Pointer<Void> viewer) → void
clear_entities(Pointer<Void> viewer) → void
clear_entities_ffi(Pointer<Void> viewer, Pointer<NativeFunction<Void Function()>> callback) → void
clear_lights(Pointer<Void> viewer) → void
clear_lights_ffi(Pointer<Void> viewer) → void
create_filament_viewer(Pointer<Void> context, Pointer<Void> loader, Pointer<Void> platform, Pointer<Char> uberArchivePath) Pointer<Void>
create_filament_viewer_ffi(Pointer<Void> context, Pointer<Void> platform, Pointer<Char> uberArchivePath, Pointer<Void> loader, Pointer<NativeFunction<Void Function(Pointer<Void> renderCallbackOwner)>> renderCallback, Pointer<Void> renderCallbackOwner, Pointer<NativeFunction<Void Function(Pointer<Void> viewer)>> callback) → void
create_geometry(Pointer<Void> viewer, Pointer<Float> vertices, int numVertices, Pointer<Uint16> indices, int numIndices, int primitiveType, Pointer<Char> materialPath) int
create_geometry_ffi(Pointer<Void> viewer, Pointer<Float> vertices, int numVertices, Pointer<Uint16> indices, int numIndices, int primitiveType, Pointer<Char> materialPath, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
create_instance(Pointer<Void> sceneManager, int id) int
create_instance_ffi(Pointer<Void> sceneManager, int entityId, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
create_render_target(Pointer<Void> viewer, int texture, int width, int height) → void
create_render_target_ffi(Pointer<Void> viewer, int nativeTextureId, int width, int height, Pointer<NativeFunction<Void Function()>> onComplete) → void
create_swap_chain(Pointer<Void> viewer, Pointer<Void> window, int width, int height) → void
create_swap_chain_ffi(Pointer<Void> viewer, Pointer<Void> surface, int width, int height, Pointer<NativeFunction<Void Function()>> onComplete) → void
destroy_filament_viewer(Pointer<Void> viewer) → void
destroy_filament_viewer_ffi(Pointer<Void> viewer) → void
destroy_swap_chain(Pointer<Void> viewer) → void
destroy_swap_chain_ffi(Pointer<Void> viewer, Pointer<NativeFunction<Void Function()>> onComplete) → void
filament_pick(Pointer<Void> viewer, int x, int y, Pointer<NativeFunction<Void Function(Int entityId, Int x, Int y)>> callback) → void
find_child_entity_by_name(Pointer<Void> sceneManager, int parent, Pointer<Char> name) int
get_animation_count(Pointer<Void> sceneManager, int asset) int
get_animation_count_ffi(Pointer<Void> sceneManager, int asset, Pointer<NativeFunction<Void Function(Int)>> callback) → void
get_animation_duration(Pointer<Void> sceneManager, int entity, int index) double
get_animation_name(Pointer<Void> sceneManager, int entity, Pointer<Char> outPtr, int index) → void
get_animation_name_ffi(Pointer<Void> sceneManager, int asset, Pointer<Char> outPtr, int index, Pointer<NativeFunction<Void Function()>> callback) → void
get_bone(Pointer<Void> sceneManager, int entityId, int skinIndex, int boneIndex) int
get_bone_count(Pointer<Void> sceneManager, int assetEntity, int skinIndex) int
get_bone_names(Pointer<Void> sceneManager, int assetEntity, Pointer<Pointer<Char>> outPtr, int skinIndex) → void
get_camera_culling_far(Pointer<Void> viewer) double
get_camera_culling_near(Pointer<Void> viewer) double
get_camera_culling_projection_matrix(Pointer<Void> viewer) Pointer<Double>
get_camera_frustum(Pointer<Void> viewer) Pointer<Double>
get_camera_model_matrix(Pointer<Void> viewer) Pointer<Double>
get_camera_position(Pointer<Void> viewer) → void
get_camera_projection_matrix(Pointer<Void> viewer) Pointer<Double>
get_camera_view_matrix(Pointer<Void> viewer) Pointer<Double>
get_entities(Pointer<Void> sceneManager, int target, bool renderableOnly, Pointer<Int> out) → void
get_entity_count(Pointer<Void> sceneManager, int target, bool renderableOnly) int
get_entity_name_at(Pointer<Void> sceneManager, int target, int index, bool renderableOnly) Pointer<Char>
get_gizmo(Pointer<Void> sceneManager, Pointer<Int> out) → void
get_instance_count(Pointer<Void> sceneManager, int entityId) int
get_instances(Pointer<Void> sceneManager, int entityId, Pointer<Int> out) → void
get_inverse_bind_matrix(Pointer<Void> sceneManager, int entityId, int skinIndex, int boneIndex, Pointer<Float> arg4) → void
get_local_transform(Pointer<Void> sceneManager, int entityId, Pointer<Float> arg2) → void
get_main_camera(Pointer<Void> viewer) int
get_morph_target_name(Pointer<Void> sceneManager, int assetEntity, int childEntity, Pointer<Char> outPtr, int index) → void
get_morph_target_name_count(Pointer<Void> sceneManager, int assetEntity, int childEntity) int
get_morph_target_name_count_ffi(Pointer<Void> sceneManager, int asset, int childEntity, Pointer<NativeFunction<Void Function(Int32)>> callback) → void
get_morph_target_name_ffi(Pointer<Void> sceneManager, int assetEntity, int childEntity, Pointer<Char> outPtr, int index, Pointer<NativeFunction<Void Function()>> callback) → void
get_name_for_entity(Pointer<Void> sceneManager, int entityId) Pointer<Char>
get_parent(Pointer<Void> sceneManager, int child) int
get_rest_local_transforms(Pointer<Void> sceneManager, int entityId, int skinIndex, Pointer<Float> out, int numBones) → void
get_scene_manager(Pointer<Void> viewer) Pointer<Void>
get_world_transform(Pointer<Void> sceneManager, int entityId, Pointer<Float> arg2) → void
grab_begin(Pointer<Void> viewer, double x, double y, bool pan) → void
grab_end(Pointer<Void> viewer) → void
grab_update(Pointer<Void> viewer, double x, double y) → void
hide_mesh(Pointer<Void> sceneManager, int entity, Pointer<Char> meshName) int
ios_dummy() → void
load_glb(Pointer<Void> sceneManager, Pointer<Char> assetPath, int numInstances) int
load_glb_ffi(Pointer<Void> sceneManager, Pointer<Char> assetPath, int numInstances, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
load_glb_from_buffer(Pointer<Void> sceneManager, Pointer<Void> data, int length) int
load_glb_from_buffer_ffi(Pointer<Void> sceneManager, Pointer<Void> data, int length, int numInstances, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
load_gltf(Pointer<Void> sceneManager, Pointer<Char> assetPath, Pointer<Char> relativePath) int
load_gltf_ffi(Pointer<Void> sceneManager, Pointer<Char> assetPath, Pointer<Char> relativePath, Pointer<NativeFunction<Void Function(EntityId)>> callback) → void
load_ibl(Pointer<Void> viewer, Pointer<Char> iblPath, double intensity) → void
load_ibl_ffi(Pointer<Void> viewer, Pointer<Char> iblPath, double intensity) → void
load_skybox(Pointer<Void> viewer, Pointer<Char> skyboxPath) → void
load_skybox_ffi(Pointer<Void> viewer, Pointer<Char> skyboxPath, Pointer<NativeFunction<Void Function()>> onComplete) → void
make_render_callback_fn_pointer(FilamentRenderCallback arg0) FilamentRenderCallback
make_resource_loader(LoadFilamentResourceFromOwner loadFn, FreeFilamentResourceFromOwner freeFn, Pointer<Void> owner) Pointer<Void>
move_camera_to_asset(Pointer<Void> viewer, int asset) → void
play_animation(Pointer<Void> sceneManager, int entity, int index, bool loop, bool reverse, bool replaceActive, double crossfade) → void
play_animation_ffi(Pointer<Void> sceneManager, int asset, int index, bool loop, bool reverse, bool replaceActive, double crossfade) → void
queue_position_update(Pointer<Void> sceneManager, int entity, double x, double y, double z, bool relative) → void
queue_rotation_update(Pointer<Void> sceneManager, int entity, double rads, double x, double y, double z, double w, bool relative) → void
remove_animation_component(Pointer<Void> sceneManager, int entityId) → void
remove_collision_component(Pointer<Void> sceneManager, int entityId) → void
remove_entity(Pointer<Void> viewer, int asset) → void
remove_entity_ffi(Pointer<Void> viewer, int asset, Pointer<NativeFunction<Void Function()>> callback) → void
remove_ibl(Pointer<Void> viewer) → void
remove_ibl_ffi(Pointer<Void> viewer) → void
remove_light(Pointer<Void> viewer, int entityId) → void
remove_light_ffi(Pointer<Void> viewer, int entityId) → void
remove_skybox(Pointer<Void> viewer) → void
remove_skybox_ffi(Pointer<Void> viewer) → void
render(Pointer<Void> viewer, int frameTimeInNanos, Pointer<Void> pixelBuffer, Pointer<NativeFunction<Void Function(Pointer<Void> buf, Size size, Pointer<Void> data)>> callback, Pointer<Void> data) → void
render_ffi(Pointer<Void> viewer) → void
reset_to_rest_pose(Pointer<Void> sceneManager, int asset) → void
reset_to_rest_pose_ffi(Pointer<Void> sceneManager, int entityId, Pointer<NativeFunction<Void Function()>> callback) → void
reveal_mesh(Pointer<Void> sceneManager, int entity, Pointer<Char> meshName) int
rotate_ibl(Pointer<Void> viewer, Pointer<Float> rotationMatrix) → void
scroll_begin(Pointer<Void> viewer) → void
scroll_end(Pointer<Void> viewer) → void
scroll_update(Pointer<Void> viewer, double x, double y, double z) → void
set_animation_frame(Pointer<Void> sceneManager, int entity, int animationIndex, int animationFrame) → void
set_animation_frame_ffi(Pointer<Void> sceneManager, int asset, int animationIndex, int animationFrame) → void
set_antialiasing(Pointer<Void> viewer, bool msaa, bool fxaa, bool taa) → void
set_background_color(Pointer<Void> viewer, double r, double g, double b, double a) → void
set_background_color_ffi(Pointer<Void> viewer, double r, double g, double b, double a) → void
set_background_image(Pointer<Void> viewer, Pointer<Char> path, bool fillHeight) → void
set_background_image_ffi(Pointer<Void> viewer, Pointer<Char> path, bool fillHeight, Pointer<NativeFunction<Void Function()>> onComplete) → void
set_background_image_position(Pointer<Void> viewer, double x, double y, bool clamp) → void
set_background_image_position_ffi(Pointer<Void> viewer, double x, double y, bool clamp) → void
set_bloom(Pointer<Void> viewer, double strength) → void
set_bloom_ffi(Pointer<Void> viewer, double strength) → void
set_bone_transform(Pointer<Void> sceneManager, int entity, int skinIndex, int boneIndex, Pointer<Float> transform) bool
set_bone_transform_ffi(Pointer<Void> sceneManager, int asset, int skinIndex, int boneIndex, Pointer<Float> transform, Pointer<NativeFunction<Void Function(Bool)>> callback) → void
set_camera(Pointer<Void> viewer, int entity, Pointer<Char> nodeName) bool
set_camera_culling(Pointer<Void> viewer, double near, double far) → void
set_camera_exposure(Pointer<Void> viewer, double aperture, double shutterSpeed, double sensitivity) → void
set_camera_ffi(Pointer<Void> viewer, int asset, Pointer<Char> nodeName, Pointer<NativeFunction<Void Function(Bool)>> callback) → void
set_camera_focal_length(Pointer<Void> viewer, double focalLength) → void
set_camera_focus_distance(Pointer<Void> viewer, double focusDistance) → void
set_camera_fov(Pointer<Void> viewer, double fovInDegrees, double aspect) → void
set_camera_manipulator_options(Pointer<Void> viewer, int mode, double orbitSpeedX, double orbitSpeedY, double zoomSpeed) → void
set_camera_model_matrix(Pointer<Void> viewer, Pointer<Float> matrix) → void
set_camera_position(Pointer<Void> viewer, double x, double y, double z) → void
set_camera_projection_matrix(Pointer<Void> viewer, Pointer<Double> matrix, double near, double far) → void
set_camera_rotation(Pointer<Void> viewer, double w, double x, double y, double z) → void
set_frame_interval(Pointer<Void> viewer, double interval) → void
set_frame_interval_ffi(Pointer<Void> viewer, double frameInterval) → void
set_main_camera(Pointer<Void> viewer) → void
set_material_color(Pointer<Void> sceneManager, int entity, Pointer<Char> meshName, int materialIndex, double r, double g, double b, double a) bool
set_morph_animation(Pointer<Void> sceneManager, int entity, Pointer<Float> morphData, Pointer<Int> morphIndices, int numMorphTargets, int numFrames, double frameLengthInMs) bool
set_morph_target_weights(Pointer<Void> sceneManager, int entity, Pointer<Float> morphData, int numWeights) bool
set_morph_target_weights_ffi(Pointer<Void> sceneManager, int asset, Pointer<Float> morphData, int numWeights, Pointer<NativeFunction<Void Function(Bool)>> callback) → void
set_parent(Pointer<Void> sceneManager, int child, int parent) → void
set_position(Pointer<Void> sceneManager, int entity, double x, double y, double z) → void
set_post_processing(Pointer<Void> viewer, bool enabled) → void
set_post_processing_ffi(Pointer<Void> viewer, bool enabled) → void
set_priority(Pointer<Void> sceneManager, int entityId, int priority) → void
set_recording(Pointer<Void> viewer, bool recording) → void
set_recording_output_directory(Pointer<Void> viewer, Pointer<Char> outputDirectory) → void
set_rendering_ffi(Pointer<Void> viewer, bool rendering, Pointer<NativeFunction<Void Function()>> onComplete) → void
set_rotation(Pointer<Void> sceneManager, int entity, double rads, double x, double y, double z, double w) → void
set_scale(Pointer<Void> sceneManager, int entity, double scale) → void
set_shadow_type(Pointer<Void> viewer, int shadowType) → void
set_shadows_enabled(Pointer<Void> viewer, bool enabled) → void
set_soft_shadow_options(Pointer<Void> viewer, double penumbraScale, double penumbraRatioScale) → void
set_tone_mapping(Pointer<Void> viewer, int toneMapping) → void
set_tone_mapping_ffi(Pointer<Void> viewer, int toneMapping) → void
set_transform(Pointer<Void> sceneManager, int entityId, Pointer<Float> transform) bool
set_view_frustum_culling(Pointer<Void> viewer, bool enabled) → void
sizeOf<T extends SizedNativeType>() int
Number of bytes used by native type T.
stop_animation(Pointer<Void> sceneManager, int entity, int index) → void
stop_animation_ffi(Pointer<Void> sceneManager, int asset, int index) → void
test_collisions(Pointer<Void> sceneManager, int entity) → void
thermion_flutter_free(Pointer<Void> ptr) → void
transform_to_unit_cube(Pointer<Void> sceneManager, int asset) → void
update_bone_matrices(Pointer<Void> sceneManager, int entityId) bool
update_bone_matrices_ffi(Pointer<Void> sceneManager, int asset, Pointer<NativeFunction<Void Function(Bool)>> callback) → void
update_viewport_and_camera_projection(Pointer<Void> viewer, int width, int height, double scaleFactor) → void
update_viewport_and_camera_projection_ffi(Pointer<Void> viewer, int width, int height, double scaleFactor, Pointer<NativeFunction<Void Function()>> onComplete) → void
using<R>(R computation(Arena), [Allocator wrappedAllocator = calloc]) → R
Runs computation with a new Arena, and releases all allocations at the end.
withBoolCallback(dynamic func(Pointer<NativeFunction<Void Function(Bool)>>)) Future<bool>
withCharPtrCallback(dynamic func(Pointer<NativeFunction<Void Function(Pointer<Char>)>>)) Future<String>
withIntCallback(dynamic func(Pointer<NativeFunction<Void Function(Int32)>>)) Future<int>
withVoidCallback(dynamic func(Pointer<NativeFunction<Void Function()>>)) Future<void>
withVoidPointerCallback(dynamic func(Pointer<NativeFunction<Void Function(Pointer<Void>)>>)) Future<int>
withZoneArena<R>(R computation(), [Allocator wrappedAllocator = calloc]) → R
Creates a zoned Arena to manage native resources.

Typedefs

Dart_ManipulatorMode = int
Dart_NativeMessageHandler = Void Function(Int64, Pointer<Dart_CObject>)
DartEntityId = int
DartFilamentRenderCallbackFunction = void Function(Pointer<Void> owner)
DartFreeFilamentResourceFromOwnerFunction = void Function(ResourceBuffer, Pointer<Void>)
DartFreeFilamentResourceFunction = void Function(ResourceBuffer)
DartLoadFilamentResourceIntoOutPointerFunction = void Function(Pointer<Char> uri, Pointer<ResourceBuffer> out)
EntityId = Int32
This header replicates most of the methods in ThermionDartApi.h. It represents the interface for:
FilamentRenderCallback = Pointer<NativeFunction<FilamentRenderCallbackFunction>>
FilamentRenderCallbackFunction = Void Function(Pointer<Void> owner)
FreeFilamentResource = Pointer<NativeFunction<FreeFilamentResourceFunction>>
FreeFilamentResourceFromOwner = Pointer<NativeFunction<FreeFilamentResourceFromOwnerFunction>>
FreeFilamentResourceFromOwnerFunction = Void Function(ResourceBuffer, Pointer<Void>)
FreeFilamentResourceFunction = Void Function(ResourceBuffer)
LoadFilamentResource = Pointer<NativeFunction<LoadFilamentResourceFunction>>
LoadFilamentResourceFromOwner = Pointer<NativeFunction<LoadFilamentResourceFromOwnerFunction>>
LoadFilamentResourceFromOwnerFunction = ResourceBuffer Function(Pointer<Char>, Pointer<Void>)
LoadFilamentResourceFunction = ResourceBuffer Function(Pointer<Char> uri)
LoadFilamentResourceIntoOutPointer = Pointer<NativeFunction<LoadFilamentResourceIntoOutPointerFunction>>
LoadFilamentResourceIntoOutPointerFunction = Void Function(Pointer<Char> uri, Pointer<ResourceBuffer> out)
NativeFinalizerFunction = NativeFunction<Void Function(Pointer<Void> token)>
The native function type for NativeFinalizers.