Reads the provided byte array as a big-endian, unsigned integer.
A byte array containing an encoded UInt.
A BigInt value representing the encoded UInt.
Encodes the specified BigInt value as a sign-and-magnitude integer.
The integer to encode.
Whether or not the integer is negative. This cannot be inferred when value
is zero,
as the BigInt data type cannot natively represent negative zero.
A byte array containing the encoded Int.
Encodes the specified BigInt value as a big-endian, unsigned integer.
The BigInt value to encode.
A byte array containing the encoded UInt.
This class provides logic to convert BigInt values to and from the UInt, Int, VarUInt, and VarInt primitives from the Ion spec.