writeBytes method
Write a set of bytes to the end of the buffer.
Implementation
@override
void writeBytes(List<int> bytes, {int? length}) {
length ??= bytes.length;
while (this.length + length > _buffer.length) {
_expandBuffer((this.length + length) - _buffer.length);
}
_buffer.setRange(this.length, this.length + length, bytes);
this.length += length;
}