getInts method

List<int> getInts(
  1. int length
)

get int value with length bits.

length must 8^n, get length ~/ 8 List

Implementation

List<int> getInts(int length) {
  var start = _index ~/ 8;
  var end = start + length ~/ 8;

  var data = _rawData.sublist(start, end);
  _index = _index + length;
  return data;
}