ForeignInterfaceSkel<Foreign_T extends Struct> class abstract

ForeignInterfaceSkel is an abstract class that is implemented by dart abstract classes that will provide the skeleton for stups of foreign interfaces. It provides convenience methods for managing cross-references with the foreign interface stups as well as boiler plate code for dart ffi bookeeping.

Constructors

ForeignInterfaceSkel()

Properties

handle Pointer<Foreign_T>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create() Pointer<Foreign_T>
The implementing stub should implement this function. It should create and initialize the ffi struct that will be used as the handle for the foreign code to invoke the dart code.
finalize() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lookupInstance<Dart_T>(int context) → Dart_T
Looks up the skeleton instance when foreign code calls dart code to invoke a function provide by the skeleton implementation.