package
0.0.0-20241116165817-883d5d7d379c
Repository: https://github.com/ddkwork/toolbox.git
Documentation: pkg.go.dev
# Functions
Int128From64 creates an Int128 from an int64 value.
Int128FromBigInt creates an Int128 from a big.Int.
Int128FromComponents creates an Int128 from two uint64 values representing the high and low bits.
Int128FromFloat64 creates an Int128 from a float64 value.
Int128FromRand generates a signed 128-bit random integer.
Int128FromString creates an Int128 from a string.
Int128FromStringNoCheck creates an Int128 from a string.
Int128FromUint64 creates an Int128 from a uint64 value.
Uint128From64 creates a Uint128 from a uint64 value.
Uint128FromBigInt creates a Uint128 from a big.Int.
Uint128FromComponents creates a Uint128 from two uint64 values representing the high and low bits.
Uint128FromFloat64 creates a Uint128 from a float64 value.
Uint128FromRand generates an unsigned 128-bit random integer.
Uint128FromString creates a Uint128 from a string.
Uint128FromStringNoCheck creates a Uint128 from a string.
# Variables
MaxInt128 is the maximum value representable by an Int128.
MaxUint128 is the maximum value representable by a Uint128.
MinInt128 is the minimum value representable by an Int128.
# Interfaces
RandomSource defines the method required of a source of random bits.