MCPcopy
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
816func 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.
823func hashPair(fst, snd *Constant, tpe ConstantType) int64 {

Callers 4

NameFunction · 0.85
StringFunction · 0.85
BytesFunction · 0.85
TestHashFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHashFunction · 0.68