MCPcopy
hub / github.com/perkeep/perkeep / LegacySHA1Hash

Method LegacySHA1Hash

internal/hashutil/hashutil.go:66–68  ·  view source on GitHub ↗

LegacySHA1Hash returns the current legacy SHA-1 hash sum.

()

Source from the content-addressed store, hash-verified

64
65// LegacySHA1Hash returns the current legacy SHA-1 hash sum.
66func (t *TrackDigestReader) LegacySHA1Hash() hash.Hash {
67 return t.s1
68}
69
70func (t *TrackDigestReader) Read(p []byte) (n int, err error) {
71 n, err = t.r.Read(p)

Callers 2

wholeRefMethod · 0.95
wholeFileDigestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected