Documentation ¶
Overview ¶
Package cityhash implements the CityHash family of non-cryptographic string hashing functions.
The implementation is a fairly straightforward transliteration of the C++ code from https://github.com/google/cityhash. Most of the comments from the original are preserved here, except where they are obviously not true in the transliterated code.
Index ¶
- func Hash128(s []byte) (lo, hi uint64)
- func Hash128To64(lo, hi uint64) uint64
- func Hash128WithSeed(s []byte, seed0, seed1 uint64) (lo, hi uint64)
- func Hash32(s []byte) uint32
- func Hash64(s []byte) uint64
- func Hash64WithSeed(s []byte, seed uint64) uint64
- func Hash64WithSeeds(s []byte, seed0, seed1 uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash128To64 ¶
Hash128To64 returns a 64-bit hash value for an input of 128 bits.
func Hash128WithSeed ¶
Hash128WithSeed returns a 128-bit hash value for s that includes the given 128-bit seed.
func Hash64WithSeed ¶
Hash64WithSeed returns a 64-bit hash for s that includes seed.
func Hash64WithSeeds ¶
Hash64WithSeeds returns a 64-bit hash for s that includes the two seed values.
Types ¶
This section is empty.