package
Version:
v1.1.0-rc.1
Opens a new window with list of versions in this module.
Published: Oct 4, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
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.
GetBytes returns a big-endian byte representation.
String returns a hexadecimal string representation.
Sub returns a new Uint128 decremented by n.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.