writeRawBytes method

void writeRawBytes(
  1. Uint8List value
)

Add a Uint8List splice, without copying. These bytes will be directly copied into the output buffer by writeTo.

Implementation

void writeRawBytes(Uint8List value) {
  final length = value.lengthInBytes;
  if (length == 0) return;
  _commitSplice();
  _splices.add(value);
  _bytesTotal += length;
}