beBuff2int static method

BigInt beBuff2int(
  1. Uint8List buff
)

Implementation

static BigInt beBuff2int(Uint8List buff) {
  BigInt res = BigInt.zero;
  for (int i = 0; i < buff.length; i++) {
    final n = BigInt.from(buff[buff.length - i - 1]);
    res = res + (n << i * 8);
  }
  return res;
}