readInt method
Implementation
BigInt readInt() {
int op = readOpCode();
int x = op - OpCode.push1 + 1;
if (op == OpCode.push0) {
return BigInt.from(0);
} else if (1 <= x && x >= 16) {
return BigInt.from(x);
}
return Convert.bytesToBigInt(readVarBytes(), bigEndian: false);
}