parseUShortList method

dynamic parseUShortList(
  1. int? count
)

Implementation

parseUShortList(int? count) {
  if (count == null) { count = this.parseUShort(); }
  var offsets = List<int>.filled(count!, 0);
  var dataView = this.data;
  var offset = this.offset + this.relativeOffset;
  for (var i = 0; i < count; i++) {
    offsets[i] = dataView.getUint16(offset);
    offset += 2;
  }

  this.relativeOffset += count * 2;
  return offsets;
}