package hash
import "src.elv.sh/pkg/persistent/hash"
Package hash contains some common hash functions suitable for use in hash maps.
Index ¶
- Constants
- func DJB(hs ...uint32) uint32
- func DJBCombine(acc, h uint32) uint32
- func Pointer(p unsafe.Pointer) uint32
- func String(s string) uint32
- func UInt32(u uint32) uint32
- func UInt64(u uint64) uint32
- func UIntPtr(p uintptr) uint32
Constants ¶
const DJBInit uint32 = 5381
Functions ¶
func DJB ¶
func DJBCombine ¶
func Pointer ¶
func String ¶
func UInt32 ¶
func UInt64 ¶
func UIntPtr ¶
Source Files ¶
hash.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 day ago –
Tools for package owners.