dart:ffi
NativeApi class
Utilities for accessing the Dart VM API from Dart code or from C code via dart_api_dl.h.
- Annotations
-
Constructors
- NativeApi()
Properties
- hashCode → int
read-only, inherited
- The hash code for this object.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.
Static Properties
- closeNativePort → Pointer<NativeFunction<Int8 Function(Int64)>>
read-only
- A function pointer to
bool Dart_CloseNativePort(Dart_Port native_port_id) in dart_native_api.h. - initializeApiDLData → Pointer<Void>
@Since('2.9'), read-only
- Pass this to
Dart_InitializeApiDL in your native code to enable using the symbols in dart_api_dl.h. - majorVersion → int
@Since('2.9'), read-only
- On breaking changes the major version is increased.
- minorVersion → int
@Since('2.9'), read-only
- On backwards compatible changes the minor version is increased.
- newNativePort → Pointer<NativeFunction<Int64 Function(Pointer<Uint8>, Pointer<NativeFunction<Dart_NativeMessageHandler>>, Int8)>>
read-only
- A function pointer to
- postCObject → Pointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>>
read-only
- A function pointer to
bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message) in dart_native_api.h.