getBigUint method

BigInt getBigUint(
  1. int offset,
  2. int length, [
  3. Endian endian = Endian.little
])

Reads a region of the buffer as an unsigned big integer. Items are read from the range [offset : offset+length]. The range must satisfy the relations 0offsetoffset+lengththis.length.

Implementation

BigInt getBigUint(final int offset, final int length, [final Endian endian = Endian.little]) {
  final Iterable<int> bytes = _data.getRange(offset, offset + length);
  return endian == Endian.big ? _getBigUintBE(bytes) : _getBigUintLE(bytes);
}