package
Version:
v0.0.0-...-07c73bd
Opens a new window with list of versions in this module.
Published: Aug 16, 2020
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
type Uint128 struct {
Hi, Lo uint64
}
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.
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.
Compare compares the two Uint128.
Equal returns whether or not the Uint128 are equivalent.
GetBytes returns a big-endian byte representation.
String returns a hexadecimal string representation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.