readBytes method

  1. @override
Uint8List readBytes(
  1. int length
)
override

Reads an Uint8List of length.

Implementation

@override
Uint8List readBytes(int length) {
  checkCanRead(length);

  var bs = Uint8List(length);

  _ioSyncPosition();
  _ioReadBytes(bs, 0, length);

  incrementPosition(length);
  assert(_position == _ioPosition);

  return bs;
}