readBytes method

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

Reads an Uint8List of length.

Implementation

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

  final pos = _position;
  var bs = _bytes.sublist(pos, pos + length);

  incrementPosition(length);
  return bs;
}