WASIOutputSink typedef

WASIOutputSink = void Function(Uint8List bytes)

Receives a byte chunk written by a WASI Preview1 stdout or stderr stream.

Output sinks run synchronously as part of fd_write. Each invocation receives bytes detached from the guest's linear memory.

Implementation

typedef WASIOutputSink = void Function(Uint8List bytes);