getU64Be method

BigInt getU64Be(
  1. int i
)

Reads a big-endian unsigned 64-bit integer starting at i.

Implementation

BigInt getU64Be(int i) {
  BigInt v = BigInt.zero;
  for (int k = 0; k < 8; k++) {
    v = (v << 8) | BigInt.from(_bytes[i + k]);
  }
  return v;
}