read method

Uint8List read(
  1. int length
)

Implementation

Uint8List read(int length) {
  var j = index;
  if (j + length <= this.length) {
    var bytes = dataView.sublist(j, j + length);
    index += length;
    return bytes;
  } else {
    throw Exception('BinaryPackFailure: read index out of range');
  }
}