Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wantSum (0.03 sec)

  1. 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)
  2. cmd/metacache-entries_test.go

    					gotSelected.cached = nil
    					gotSelected.reusable = false
    				}
    				if !reflect.DeepEqual(gotSelected, tt.wantSelected) {
    					wantM, _ := tt.wantSelected.xlmeta()
    					gotM, _ := gotSelected.xlmeta()
    					t.Errorf("resolve() gotSelected = \n%#v, want \n%#v", *gotM, *wantM)
    				}
    			})
    		}
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 31.6K bytes
    - Viewed (0)
Back to top