toBigInt method
Implementation
BigInt toBigInt() {
var bytes = this;
var result = BigInt.from(0);
for (var i = 0; i < bytes.length; i++) {
result += BigInt.from(bytes[bytes.length - i - 1]) << (8 * i);
}
return result;
}
BigInt toBigInt() {
var bytes = this;
var result = BigInt.from(0);
for (var i = 0; i < bytes.length; i++) {
result += BigInt.from(bytes[bytes.length - i - 1]) << (8 * i);
}
return result;
}