Documentation ¶
Index ¶
- func HashKeyMurmur3[T Hashable](key T, seed uint32) (uint64, error)
- func HashKeySha256[T Hashable](key T, seed uint32) (uint64, error)
- func HashKeySha512[T Hashable](key T, seed uint32) (uint64, error)
- func HashKeySipHash[T Hashable](key T, seed uint32) (uint64, error)
- func HashKeyXXhash[T Hashable](key T, seed uint32) (uint64, error)
- func NumToBytes[T Hashable](num T) ([]byte, error)
- type Hashable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashKeyMurmur3 ¶
HashKeyMurmur3 uses NumToBytes to convert a numeric type to bytes and computes the hash value using Murmur3.
func HashKeySha256 ¶
HashKeySha256 uses NumToBytes to convert a numeric type to bytes and computes the hash value using SHA-256
func HashKeySha512 ¶
HashKeySha512 uses NumToBytes to convert a numeric type to bytes and computes the hash value using SHA-512
func HashKeySipHash ¶
HashKeySipHash uses NumToBytes to convert a numeric type to bytes and computes the hash value using SipHash
func HashKeyXXhash ¶
HashKeyXXhash uses NumToBytes to convert a numeric type to bytes and computes the hash value using XX Hash
func NumToBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.