Dart_NativeMessageHandler typedef

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<Dart_NativeMessageHandlerFunction>>;