writeAll method

  1. @override
int writeAll(
  1. List<int> list
)
override

Writes all the int at list as bytes.

Implementation

@override
int writeAll(List<int> list) {
  var bsLength = list.length;

  final pos = _position;
  ensureCapacity(pos + bsLength);

  _ioSyncPosition();
  _ioWriteBytes(list, 0, bsLength);
  incrementPosition(bsLength);
  assert(_position == _ioPosition);
  assert(_ioPosition == _io.positionSync());

  return bsLength;
}