package xxh3

Import Path
	github.com/zeebo/xxh3 (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package


Package-Level Type Names (total 3)
/* sort by: | */
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. ResetSeed will reset the hash and set a new seed. This will change the original state used by Reset. 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/imroc/req/v3/internal/bisect.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
Hasher128 implements the hash.Hash interface. It will return hashes that are 128 bits. 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. ResetSeed will reset the hash and set a new seed. This will change the original state used by Reset. 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. 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. *Hasher128 : github.com/imroc/req/v3/internal/bisect.Writer *Hasher128 : hash.Hash *Hasher128 : internal/bisect.Writer *Hasher128 : io.StringWriter *Hasher128 : io.Writer func New128() *Hasher128 func NewSeed128(seed uint64) *Hasher128
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 func (*Hasher128).Sum128() Uint128
Package-Level Functions (total 12)
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.
New128 returns a new 128 bit Hasher that implements the hash.Hash interface.
NewSeed returns a new Hasher that implements the hash.Hash interface.
NewSeed128 returns a new Hasher128 that implements the hash.Hash interface.