Dart_NativeMessageHandler typedef

Dart_NativeMessageHandler = Pointer<NativeFunction<Void Function(Dart_Port dest_port_id, Pointer<Dart_CObject> message)>>

A native message handler.

This handler is associated with a native port by calling Dart_NewNativePort.

The message received is decoded into the message structure. The lifetime of the message data is controlled by the caller. All the data references from the message are allocated by the caller and will be reclaimed when returning to it.

Implementation

typedef Dart_NativeMessageHandler = ffi.Pointer<ffi.NativeFunction<ffi.Void Function(Dart_Port dest_port_id, ffi.Pointer<Dart_CObject> message)>>;