Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBitLength = 32
DefaultBitLength ...
Variables ¶
View Source
var MaxU16 = new(big.Int).Sub(mathutil.Pow(big.NewInt(2), big.NewInt(16-2)), big.NewInt(1))
MaxU16 ...
View Source
var MaxU32 = new(big.Int).Sub(mathutil.Pow(big.NewInt(2), big.NewInt(32-2)), big.NewInt(1))
MaxU32 ...
View Source
var MaxU8 = new(big.Int).Sub(mathutil.Pow(big.NewInt(2), big.NewInt(8-2)), big.NewInt(1))
MaxU8 ...
Functions ¶
func CompactToUint8Slice ¶
CompactToUint8Slice encodes a number into a compact representation.
func FromUint8Slice ¶
FromUint8Slice retrieves the offset and encoded length from a compact-prefixed value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.