MCPcopy Index your code
hub / github.com/kovidgoyal/kitty / hash

Method hash

tools/rsync/algorithm.go:630–634  ·  view source on GitHub ↗

Use a more unique way to identify a set of bytes.

(v []byte)

Source from the content-addressed store, hash-verified

628
629// Use a more unique way to identify a set of bytes.
630func (r *rsync) hash(v []byte) uint64 {
631 r.hasher.Reset()
632 r.hasher.Write(v)
633 return r.hasher.Sum64()
634}
635
636func (r *rsync) HashSize() int { return r.hasher.Size() }
637func (r *rsync) HashBlockSize() int { return r.hasher.BlockSize() }

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected