Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CopyBuffer (0.08 sec)

  1. src/archive/tar/reader_test.go

    						err = nil // Expected error
    					}
    					break
    				}
    				hdrs = append(hdrs, hdr)
    
    				if v.chksums == nil {
    					continue
    				}
    				h := crc32.NewIEEE()
    				_, err = io.CopyBuffer(h, tr, rdbuf) // Effectively an incremental read
    				if err != nil {
    					break
    				}
    				chksums = append(chksums, fmt.Sprintf("%x", h.Sum(nil)))
    			}
    
    			for i, hdr := range hdrs {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		defer xioutil.ODirectPoolLarge.Put(bufp)
    	}
    
    	var written int64
    	if odirectEnabled {
    		written, err = xioutil.CopyAligned(diskHealthWriter(ctx, w), r, *bufp, fileSize, w)
    	} else {
    		written, err = io.CopyBuffer(diskHealthWriter(ctx, w), r, *bufp)
    	}
    	if err != nil {
    		w.Close()
    		return err
    	}
    
    	if written < fileSize && fileSize >= 0 {
    		if truncate {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top