bytes2BigInt static method

BigInt bytes2BigInt(
  1. List<int> bytes
)

Implementation

static BigInt bytes2BigInt(List<int> bytes) {
  var x = BigInt.zero;
  for (var i = 0; i < bytes.length; ++i) {
    x = x << 8;
    x += BigInt.from(bytes[i]);
  }
  return x;
}