Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google/mangle
/ hashBytes
Function
hashBytes
ast/ast.go:816–820 ·
view source on GitHub ↗
(s []byte)
Source
from the content-addressed store, hash-verified
814
}
815
816
func
hashBytes(s []byte) uint64 {
817
h := fnv.New64()
818
h.Write(s)
819
return
h.Sum64()
820
}
821
822
// Computes a hash. The snd argument may be nil.
823
func
hashPair(fst, snd *Constant, tpe ConstantType) int64 {
Callers
4
Name
Function · 0.85
String
Function · 0.85
Bytes
Function · 0.85
TestHash
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestHash
Function · 0.68