writeBytes method

  1. @override
void writeBytes(
  1. List<int> bytes
)
override

Writes the bytes at the current writerIndex (inclusive) and increments the writerIndex by the length of the added bytes.


Exceptions:

Implementation

@override
void writeBytes(List<int> bytes) {
  writeActiveBuffers();
  var j = bytes.length;
  ensureWritable(j);
  assertWriteable(writerIndex, j);
  file.setPositionSync(writerIndex);
  file.writeFromSync(bytes);
  writerIndex = writerIndex + j;
}