writeAllBytes method
Writes all the bytes
into this buffer.
Implementation
@override
int writeAllBytes(Uint8List bytes) {
var bsLength = bytes.length;
final pos = _position;
ensureCapacity(pos + bsLength);
_ioSyncPosition();
_ioWriteBytes(bytes, 0, bsLength);
incrementPosition(bsLength);
assert(_position == _ioPosition);
return bsLength;
}