writeBuffer method
Writes a native buffer without copying it in Dart (native only).
Implementation
Future<void> writeBuffer(NativeBuffer buffer) async {
final event = await nativeRuntime.oneShot(
'wt_send_stream_write_all',
(opId) =>
b.wt_send_stream_write_all(_handle, buffer.data, buffer.length, opId),
);
if (!event.isOk) throw event.exception('writeBuffer');
}