write method

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

Write to the output.

Implementation

@override
void write(List<int> bytes) {
  if (_buffer.length - cursor < bytes.length) {
    _buffer.insertAll(cursor, bytes);
  } else {
    _buffer.setRange(cursor, cursor + bytes.length, bytes);
  }
  cursor += bytes.length;
}