package xxh3
Import Path
github.com/zeebo/xxh3 (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
accum_generic.go
accum_stubs_amd64.go
consts.go
hash128.go
hash128_seed.go
hash64.go
hash64_seed.go
hasher.go
utils.go
accum_vector_avx512_amd64.s
accum_vector_avx_amd64.s
accum_vector_sse_amd64.s
Package-Level Type Names (total 2)
Hasher implements the hash.Hash interface
BlockSize returns the hash's underlying block size.
The Write method will accept any amount of data, but
it may operate more efficiently if all writes are a
multiple of the block size.
Reset resets the Hash to its initial state.
Size returns the number of bytes Sum will return.
Sum appends the current hash to b and returns the resulting slice.
It does not change the underlying hash state.
Sum128 returns the 128-bit hash of the written data.
Sum64 returns the 64-bit hash of the written data.
Write adds more data to the running hash.
It never returns an error.
WriteString adds more data to the running hash.
It never returns an error.
*Hasher : github.com/gogo/protobuf/proto.Sizer
*Hasher : github.com/miekg/dns.Writer
*Hasher : hash.Hash
*Hasher : hash.Hash64
*Hasher : internal/bisect.Writer
*Hasher : io.StringWriter
*Hasher : io.Writer
func New() *Hasher
func NewSeed(seed uint64) *Hasher
Uint128 is a 128 bit value.
The actual value can be thought of as u.Hi<<64 | u.Lo.
Hi uint64
Lo uint64
Bytes returns the uint128 as an array of bytes in canonical form (big-endian encoded).
func Hash128(b []byte) Uint128
func Hash128Seed(b []byte, seed uint64) Uint128
func HashString128(s string) Uint128
func HashString128Seed(s string, seed uint64) Uint128
func (*Hasher).Sum128() Uint128
Package-Level Functions (total 10)
Hash returns the hash of the byte slice.
Hash128 returns the 128-bit hash of the byte slice.
Hash128Seed returns the 128-bit hash of the byte slice.
HashSeed returns the hash of the byte slice with given seed.
Hash returns the hash of the string slice.
HashString128 returns the 128-bit hash of the string slice.
HashString128Seed returns the 128-bit hash of the string slice.
HashStringSeed returns the hash of the string slice with given seed.
New returns a new Hasher that implements the hash.Hash interface.
NewSeed returns a new Hasher that implements the hash.Hash interface.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |