Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cespare/xxhash
/ functions
Functions
54 in github.com/cespare/xxhash
⨍
Functions
54
◇
Types & classes
2
↓ 11 callers
Method
Sum64
Sum64 returns the current hash.
xxhash.go:114
↓ 8 callers
Method
Write
Write adds more data to d. It always returns len(b), nil.
xxhash.go:60
↓ 7 callers
Function
New
New creates a new Digest that computes the 64-bit xxHash algorithm.
xxhash.go:37
↓ 6 callers
Method
WriteString
WriteString adds more data to d. It always returns len(s), nil.
xxhash_safe.go:14
↓ 5 callers
Function
Sum64
Sum64 computes the 64-bit xxHash digest of b. go:noescape
xxhash_asm.go:12
↓ 5 callers
Function
round
(acc, input uint64)
xxhash.go:207
↓ 5 callers
Function
u64
(b []byte)
xxhash.go:204
↓ 4 callers
Function
Sum64String
Sum64String computes the 64-bit xxHash digest of s.
xxhash_safe.go:9
↓ 2 callers
Method
Reset
Reset clears the Digest's state so that it can be reused.
xxhash.go:44
↓ 2 callers
Function
mergeRound
(acc, val uint64)
xxhash.go:214
↓ 2 callers
Function
rol1
(x uint64)
xxhash.go:221
↓ 2 callers
Function
rol11
(x uint64)
xxhash.go:223
↓ 2 callers
Function
rol12
(x uint64)
xxhash.go:224
↓ 2 callers
Function
rol18
(x uint64)
xxhash.go:225
↓ 2 callers
Function
rol23
(x uint64)
xxhash.go:226
↓ 2 callers
Function
rol27
(x uint64)
xxhash.go:227
↓ 2 callers
Function
rol7
(x uint64)
xxhash.go:222
↓ 2 callers
Function
testAllocs
(t *testing.T, fn func())
xxhash_test.go:161
↓ 2 callers
Function
u32
(b []byte)
xxhash.go:205
↓ 1 callers
Method
MarshalBinary
MarshalBinary implements the encoding.BinaryMarshaler interface.
xxhash.go:161
↓ 1 callers
Method
Sum
Sum appends the current hash to b and returns the resulting slice.
xxhash.go:98
↓ 1 callers
Method
UnmarshalBinary
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
xxhash.go:175
↓ 1 callers
Function
appendUint64
(b []byte, x uint64)
xxhash.go:193
↓ 1 callers
Function
benchmarkHashBytes
(b *testing.B, input []byte, fn func([]byte) uint64)
xxhashbench/xxhashbench_test.go:152
↓ 1 callers
Function
benchmarkHashString
(b *testing.B, input string, fn func(string) uint64)
xxhashbench/xxhashbench_test.go:159
↓ 1 callers
Function
consumeUint64
(b []byte)
xxhash.go:199
↓ 1 callers
Function
contains
(ss []string, s string)
xxhsum/xxhsum.go:34
↓ 1 callers
Function
printHash
(r io.Reader, name string)
xxhsum/xxhsum.go:43
↓ 1 callers
Function
rol31
(x uint64)
xxhash.go:228
↓ 1 callers
Function
testDigest
(t *testing.T, input string, chunkSize int, want uint64)
xxhash_test.go:43
↓ 1 callers
Function
testSum
(t *testing.T, input string, want uint64)
xxhash_test.go:73
↓ 1 callers
Function
writeBlocks
go:noescape
xxhash_asm.go:15
Function
BenchmarkDigestBytes
(b *testing.B)
bench_test.go:46
Function
BenchmarkDigestString
(b *testing.B)
bench_test.go:63
Function
BenchmarkHashes
(b *testing.B)
xxhashbench/xxhashbench_test.go:108
Function
BenchmarkSum64
(b *testing.B)
bench_test.go:19
Function
BenchmarkSum64String
(b *testing.B)
bench_test.go:34
Method
BlockSize
BlockSize always returns 32 bytes.
xxhash.go:57
Method
Size
Size always returns 8 bytes.
xxhash.go:54
Function
Sum64
Sum64 computes the 64-bit xxHash digest of b.
xxhash_other.go:7
Function
Sum64String
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
Function
TestAll
(t *testing.T)
xxhash_test.go:11
Function
TestAllocs
(t *testing.T)
xxhash_test.go:138
Function
TestBinaryMarshaling
(t *testing.T)
xxhash_test.go:99
Function
TestDigest
(t *testing.T)
dynamic/plugin.go:26
Function
TestDynamic
(t *testing.T)
dynamic/dynamic_test.go:33
Function
TestInlining
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
Function
TestMain
This is a cursory test that checks whether things work under dynamic linking.
dynamic/dynamic_test.go:17
Function
TestReset
(t *testing.T)
xxhash_test.go:82
Function
TestStringAllocs
(t *testing.T)
xxhash_unsafe_test.go:13
Function
TestSum
(t *testing.T)
dynamic/plugin.go:19
Method
WriteString
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
Function
main
()
xxhsum/xxhsum.go:11
Function
writeBlocks
(d *Digest, b []byte)
xxhash_other.go:64