toUBigInt property
Decode a signed big-endian integer from the buffer. Can be positive or negative.
Implementation
// BigInt get toBigInt => p_utils.decodeBigInt(this);
BigInt get toUBigInt {
BigInt result = BigInt.zero;
for (var i = 0; i < length; i++) {
result = result * BigInt.from(256) + BigInt.from(this[i]);
}
return result;
}