writeAllBytes method

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

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