writeBytes2 method
Writes binary bytes to a stream.
Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText.
Implementation
void writeBytes2(Uint8List byteData) {
final h = _handle;
using((arena) {
final r = _CkStream_WriteBytes2(
h,
_toNativeBytes(arena, byteData),
byteData.length,
);
_ev.rethrowPending();
if (r == 0) {
throw _fail('writeBytes2');
}
});
}