package xxhash
Import Path
github.com/klauspost/compress/zstd/internal/xxhash (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (only one, which is exported)
Digest implements hash.Hash64.
mem [32]byte
// how much of mem is used
total uint64
v1 uint64
v2 uint64
v3 uint64
v4 uint64
BlockSize always returns 32 bytes.
MarshalBinary implements the encoding.BinaryMarshaler interface.
Reset clears the Digest's state so that it can be reused.
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.
*Digest : encoding.BinaryMarshaler
*Digest : encoding.BinaryUnmarshaler
*Digest : hash.Hash
*Digest : hash.Hash64
*Digest : internal/bisect.Writer
*Digest : io.StringWriter
*Digest : io.Writer
*Digest : github.com/refraction-networking/utls.transcriptHash
*Digest : crypto/internal/fips140/hmac.marshalable
*Digest : crypto/tls.transcriptHash
*Digest : net/http.http2stringWriter
func New() *Digest
func writeBlocks(s *Digest, b []byte) int
Package-Level Functions (total 18, in which 3 are exported)
New creates a new Digest that computes the 64-bit xxHash algorithm.
Sum64 computes the 64-bit xxHash digest of b.
Sum64String computes the 64-bit xxHash digest of s.
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 7, none are exported)
![]() |
The pages are generated with Golds v0.8.4. (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. |