MCPcopy
hub / github.com/git-lfs/git-lfs / NewHashingReader

Function NewHashingReader

tools/iotools.go:53–55  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

51}
52
53func NewHashingReader(r io.Reader) *HashingReader {
54 return &HashingReader{r, NewLfsContentHash()}
55}
56
57func NewHashingReaderPreloadHash(r io.Reader, hash hash.Hash) *HashingReader {
58 return &HashingReader{r, hash}

Callers 2

downloadMethod · 0.92
doDownloadMethod · 0.92

Calls 1

NewLfsContentHashFunction · 0.85

Tested by

no test coverage detected