Documentation ¶
Index ¶
- func CPUTicks() int64
- func FastRand() uint32
- func MemHash(data []byte) uint64
- func MemHashString(str string) uint64
- func MemHashUint64(val uint64) uint64
- func Memequal(a, b unsafe.Pointer, size uintptr) bool
- func Memhash(p unsafe.Pointer, h, s uintptr) uintptr
- func NanoTime() int64
- type StringStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUTicks ¶
func CPUTicks() int64
CPUTicks is a faster alternative to NanoTime to measure time duration.
func MemHash ¶
MemHash is the hash function used by go map, it utilizes available hardware instructions(behaves as aeshash if aes instruction is available). NOTE: The hash seed changes for every process. So, this cannot be used as a persistent hash.
func MemHashString ¶
MemHashString is the hash function used by go map, it utilizes available hardware instructions (behaves as aeshash if aes instruction is available). NOTE: The hash seed changes for every process. So, this cannot be used as a persistent hash.
func MemHashUint64 ¶
MemHashUint64 uses the aeshash given by the golang runtime.
Types ¶
type StringStruct ¶
Click to show internal directories.
Click to hide internal directories.