package xxhash
Import Path
github.com/cespare/xxhash/v2 (on go.dev)
Dependency Relation
imports 4 packages, and imported by 3 packages
Involved Source Files
Package xxhash implements the 64-bit variant of xxHash (XXH64) as described
at http://cyan4973.github.io/xxHash/.
xxhash_asm.go
xxhash_unsafe.go
xxhash_amd64.s
Package-Level Type Names (only one)
Digest implements hash.Hash64.
Note that a zero-valued Digest is not ready to receive writes.
Call Reset or create a Digest using New before calling other methods.
BlockSize always returns 32 bytes.
MarshalBinary implements the encoding.BinaryMarshaler interface.
Reset clears the Digest's state so that it can be reused.
It uses a seed value of zero.
ResetWithSeed clears the Digest's state so that it can be reused.
It uses the given seed to initialize the state.
Size always returns 8 bytes.
Sum appends the current hash to b and returns the resulting slice.
Sum64 returns the current hash.
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
Write adds more data to d. It always returns len(b), nil.
WriteString adds more data to d. It always returns len(s), nil.
It may be faster than Write([]byte(s)) by avoiding a copy.
*Digest : github.com/gogo/protobuf/proto.Sizer
*Digest : github.com/miekg/dns.Writer
*Digest : encoding.BinaryMarshaler
*Digest : encoding.BinaryUnmarshaler
*Digest : hash.Hash
*Digest : hash.Hash64
*Digest : internal/bisect.Writer
*Digest : io.StringWriter
*Digest : io.Writer
func New() *Digest
func NewWithSeed(seed uint64) *Digest
Package-Level Functions (total 4)
New creates a new Digest with a zero seed.
NewWithSeed creates a new Digest with the given seed.
Sum64 computes the 64-bit xxHash digest of b with a zero seed.
Sum64String computes the 64-bit xxHash digest of s with a zero seed.
It may be faster than Sum64([]byte(s)) by avoiding a copy.
![]() |
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. |