writeAllBytes method

  1. @override
int writeAllBytes(
  1. Uint8List bytes
)
override

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;
}