Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/perkeep/perkeep
/ Sum32
Method
Sum32
pkg/blob/ref.go:165–171 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
163
}
164
165
func
(r Ref) Sum32() uint32 {
166
var
v uint32
167
for
_, b :=
range
r.digest.bytes()[:4] {
168
v = v<<8 | uint32(b)
169
}
170
return
v
171
}
172
173
func
(r Ref) Sum64() uint64 {
174
var
v uint64
Callers
3
TestSum32
Function · 0.80
shardNum
Method · 0.80
fileInfoToFingerprint
Function · 0.80
Calls
1
bytes
Method · 0.65
Tested by
1
TestSum32
Function · 0.64