Involved Source Files Package xxhash implements the 64-bit variant of xxHash (XXH64) as described
at http://cyan4973.github.io/xxHash/.xxhash_asm.goxxhash_unsafe.goxxhash_amd64.s
Package-Level Type Names (total 2, in which 1 is exported)
/* sort exporteds by: | */
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.mem[32]byte // how much of mem is usedtotaluint64v1uint64v2uint64v3uint64v4uint64 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 : 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 NewWithSeed(seed uint64) *Digest
func writeBlocks(d *Digest, b []byte) int
sliceHeader is similar to reflect.SliceHeader, but it assumes that the layout
of the first two words is the same as the layout of a string.capintsstring
Package-Level Functions (total 19, in which 4 are exported)
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 Goldsv0.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.