- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for wantSum (0.03 sec)
-
internal/hash/checker.go
// NewChecker ensures that content with the specified length is read from rc. // Calling Close on this will close upstream. func NewChecker(rc io.ReadCloser, h hash.Hash, wantSum []byte, length int64) *Checker { return &Checker{c: rc, r: ioutil.HardLimitReader(rc, length), h: h, want: wantSum} } // Read satisfies io.Reader func (c Checker) Read(p []byte) (n int, err error) { n, err = c.r.Read(p) if n > 0 { c.h.Write(p[:n]) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jan 20 14:49:07 UTC 2025 - 1.8K bytes - Viewed (0) -
cmd/metacache-entries_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 31.6K bytes - Viewed (0)