MCPcopy Create free account

hub / github.com/cespare/xxhash / functions

Functions54 in github.com/cespare/xxhash

↓ 11 callersMethodSum64
Sum64 returns the current hash.
xxhash.go:114
↓ 8 callersMethodWrite
Write adds more data to d. It always returns len(b), nil.
xxhash.go:60
↓ 7 callersFunctionNew
New creates a new Digest that computes the 64-bit xxHash algorithm.
xxhash.go:37
↓ 6 callersMethodWriteString
WriteString adds more data to d. It always returns len(s), nil.
xxhash_safe.go:14
↓ 5 callersFunctionSum64
Sum64 computes the 64-bit xxHash digest of b. go:noescape
xxhash_asm.go:12
↓ 5 callersFunctionround
(acc, input uint64)
xxhash.go:207
↓ 5 callersFunctionu64
(b []byte)
xxhash.go:204
↓ 4 callersFunctionSum64String
Sum64String computes the 64-bit xxHash digest of s.
xxhash_safe.go:9
↓ 2 callersMethodReset
Reset clears the Digest's state so that it can be reused.
xxhash.go:44
↓ 2 callersFunctionmergeRound
(acc, val uint64)
xxhash.go:214
↓ 2 callersFunctionrol1
(x uint64)
xxhash.go:221
↓ 2 callersFunctionrol11
(x uint64)
xxhash.go:223
↓ 2 callersFunctionrol12
(x uint64)
xxhash.go:224
↓ 2 callersFunctionrol18
(x uint64)
xxhash.go:225
↓ 2 callersFunctionrol23
(x uint64)
xxhash.go:226
↓ 2 callersFunctionrol27
(x uint64)
xxhash.go:227
↓ 2 callersFunctionrol7
(x uint64)
xxhash.go:222
↓ 2 callersFunctiontestAllocs
(t *testing.T, fn func())
xxhash_test.go:161
↓ 2 callersFunctionu32
(b []byte)
xxhash.go:205
↓ 1 callersMethodMarshalBinary
MarshalBinary implements the encoding.BinaryMarshaler interface.
xxhash.go:161
↓ 1 callersMethodSum
Sum appends the current hash to b and returns the resulting slice.
xxhash.go:98
↓ 1 callersMethodUnmarshalBinary
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
xxhash.go:175
↓ 1 callersFunctionappendUint64
(b []byte, x uint64)
xxhash.go:193
↓ 1 callersFunctionbenchmarkHashBytes
(b *testing.B, input []byte, fn func([]byte) uint64)
xxhashbench/xxhashbench_test.go:152
↓ 1 callersFunctionbenchmarkHashString
(b *testing.B, input string, fn func(string) uint64)
xxhashbench/xxhashbench_test.go:159
↓ 1 callersFunctionconsumeUint64
(b []byte)
xxhash.go:199
↓ 1 callersFunctioncontains
(ss []string, s string)
xxhsum/xxhsum.go:34
↓ 1 callersFunctionprintHash
(r io.Reader, name string)
xxhsum/xxhsum.go:43
↓ 1 callersFunctionrol31
(x uint64)
xxhash.go:228
↓ 1 callersFunctiontestDigest
(t *testing.T, input string, chunkSize int, want uint64)
xxhash_test.go:43
↓ 1 callersFunctiontestSum
(t *testing.T, input string, want uint64)
xxhash_test.go:73
↓ 1 callersFunctionwriteBlocks
go:noescape
xxhash_asm.go:15
FunctionBenchmarkDigestBytes
(b *testing.B)
bench_test.go:46
FunctionBenchmarkDigestString
(b *testing.B)
bench_test.go:63
FunctionBenchmarkHashes
(b *testing.B)
xxhashbench/xxhashbench_test.go:108
FunctionBenchmarkSum64
(b *testing.B)
bench_test.go:19
FunctionBenchmarkSum64String
(b *testing.B)
bench_test.go:34
MethodBlockSize
BlockSize always returns 32 bytes.
xxhash.go:57
MethodSize
Size always returns 8 bytes.
xxhash.go:54
FunctionSum64
Sum64 computes the 64-bit xxHash digest of b.
xxhash_other.go:7
FunctionSum64String
In the future it's possible that compiler optimizations will make these XxxString functions unnecessary by realizing that calls such as Sum64([]byte(s
xxhash_unsafe.go:38
FunctionTestAll
(t *testing.T)
xxhash_test.go:11
FunctionTestAllocs
(t *testing.T)
xxhash_test.go:138
FunctionTestBinaryMarshaling
(t *testing.T)
xxhash_test.go:99
FunctionTestDigest
(t *testing.T)
dynamic/plugin.go:26
FunctionTestDynamic
(t *testing.T)
dynamic/dynamic_test.go:33
FunctionTestInlining
This test is inspired by the Go runtime tests in https://go.dev/cl/57410. It asserts that certain important functions may be inlined.
xxhash_unsafe_test.go:31
FunctionTestMain
This is a cursory test that checks whether things work under dynamic linking.
dynamic/dynamic_test.go:17
FunctionTestReset
(t *testing.T)
xxhash_test.go:82
FunctionTestStringAllocs
(t *testing.T)
xxhash_unsafe_test.go:13
FunctionTestSum
(t *testing.T)
dynamic/plugin.go:19
MethodWriteString
WriteString adds more data to d. It always returns len(s), nil. It may be faster than Write([]byte(s)) by avoiding a copy.
xxhash_unsafe.go:45
Functionmain
()
xxhsum/xxhsum.go:11
FunctionwriteBlocks
(d *Digest, b []byte)
xxhash_other.go:64