package
1.0.15
Repository: https://github.com/netcloth/netcloth-chain.git
Documentation: pkg.go.dev

# Functions

BigMax returns the larger of x or y.
BigMin returns the smaller of x or y.
BigPow returns a ** b as a big integer.
Byte returns the byte at position n, with the supplied padlength in Little-Endian encoding.
No description provided by the author
MustParseUint64 parses s as an integer and panics if the string is invalid.
NewHexOrDecimal256 creates a new HexOrDecimal256.
PaddedBigBytes encodes a big integer as a big-endian byte slice.
ParseBig256 parses s as a 256 bit integer in decimal or hexadecimal syntax.
ParseUint64 parses s as an integer in decimal or hexadecimal syntax.
ReadBits encodes the absolute value of bigint as big-endian bytes.
S256 interprets x as a tow's complement number x must not exceed 256 bits (the result is undefined if it does) and is not modified.
SafeAdd returns the result and whether overflow occurred.
SafeMul returns multiplication result and whether overflow occurred.
SafeSub returns subtraction result and whether overflow occurred.
U256 encodes as a 256 bit two's complement number.

# Constants

Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.

# Type aliases

HexOrDecimal256 marshals big.Int as hex or decimal.
HexOrDecimal64 marshals uint64 as hex or decimal.