getUint8List method

Uint8List getUint8List(
  1. int length
)

Reads the given number of Uint8s from the buffer.

Implementation

Uint8List getUint8List(int length) {
  final Uint8List list = data.buffer.asUint8List(data.offsetInBytes + _position, length);
  _position += length;
  return list;
}