Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for n2 (0.24 sec)

  1. internal/s3select/progress.go

    	return &pr, nil
    }
    
    type nopReadCloser struct {
    	fn func()
    }
    
    func (n2 *nopReadCloser) Read(p []byte) (n int, err error) {
    	panic("should not be called")
    }
    
    func (n2 *nopReadCloser) Close() error {
    	if n2.fn != nil {
    		n2.fn()
    	}
    	n2.fn = nil
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Oct 18 15:44:36 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  2. cmd/dummy-data-generator_test.go

    	bufLen := 32 * 1024
    	b1, b2 := make([]byte, bufLen), make([]byte, bufLen)
    	for i := 0; true; i++ {
    		n1, e1 := io.ReadFull(r1, b1)
    		n2, e2 := io.ReadFull(r2, b2)
    		if n1 != n2 {
    			return false, fmt.Sprintf("Read %d != %d bytes from the readers", n1, n2)
    		}
    		if !bytes.Equal(b1[:n1], b2[:n2]) {
    			return false, fmt.Sprintf("After reading %d equal buffers (32Kib each), we got the following two strings:\n%v\n%v\n",
    				i, b1, b2)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 4.8K bytes
    - Viewed (0)
Back to top