leBytesToBigInt static method

BigInt leBytesToBigInt(
  1. Uint8List bytes
)

Implementation

static BigInt leBytesToBigInt(Uint8List bytes) {
  BigInt result = BigInt.zero;
  for (int i = bytes.length - 1; i >= 0; i--) {
    result = (result << 8) + BigInt.from(bytes[i]);
  }
  return result;
}