writeAllBytes method
Writes all the bytes
into this buffer.
Implementation
@override
int writeAllBytes(Uint8List bytes) {
var length = bytes.length;
final pos = _position;
ensureCapacity(pos + length);
_bytes.setAll(pos, bytes);
incrementPosition(length);
return length;
}