Uint128 is a big-endian 128 bit unsigned integer which wraps two uint64s.
FromBytes parses the byte slice as a 128 bit big-endian unsigned integer. The caller is responsible for ensuring the byte slice contains 16 bytes.
FromInts takes in two unsigned 64-bit integers and constructs a Uint128.
FromString parses a hexadecimal string as a 128-bit big-endian unsigned integer.
Add returns a new Uint128 incremented by n.
And returns a new Uint128 that is the bitwise AND of two Uint128 values.
Compare compares the two Uint128.
Equal returns whether or not the Uint128 are equivalent.
GetBytes returns a big-endian byte representation.
Or returns a new Uint128 that is the bitwise OR of two Uint128 values.
String returns a hexadecimal string representation.
Sub returns a new Uint128 decremented by n.
Xor returns a new Uint128 that is the bitwise XOR of two Uint128 values.