Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for logicalRemaining (0.21 sec)

  1. src/archive/tar/writer.go

    	default:
    		return n, nil
    	}
    }
    
    func (fw *regFileWriter) ReadFrom(r io.Reader) (int64, error) {
    	return io.Copy(struct{ io.Writer }{fw}, r)
    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fw regFileWriter) logicalRemaining() int64 {
    	return fw.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fw regFileWriter) physicalRemaining() int64 {
    	return fw.nb
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	default:
    		return n, err
    	}
    }
    
    func (fr *regFileReader) WriteTo(w io.Writer) (int64, error) {
    	return io.Copy(w, struct{ io.Reader }{fr})
    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fr regFileReader) logicalRemaining() int64 {
    	return fr.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fr regFileReader) physicalRemaining() int64 {
    	return fr.nb
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    				}
    				if len(f.ops) > 0 {
    					t.Errorf("test %d.%d, expected %d more operations", i, j, len(f.ops))
    				}
    			case testRemaining:
    				if got := fw.logicalRemaining(); got != tf.wantLCnt {
    					t.Errorf("test %d.%d, logicalRemaining() = %d, want %d", i, j, got, tf.wantLCnt)
    				}
    				if got := fw.physicalRemaining(); got != tf.wantPCnt {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    				}
    				if len(f.ops) > 0 {
    					t.Errorf("test %d.%d, expected %d more operations", i, j, len(f.ops))
    				}
    			case testRemaining:
    				if got := fr.logicalRemaining(); got != tf.wantLCnt {
    					t.Errorf("test %d.%d, logicalRemaining() = %d, want %d", i, j, got, tf.wantLCnt)
    				}
    				if got := fr.physicalRemaining(); got != tf.wantPCnt {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  5. src/archive/tar/common.go

    }
    
    // fileState tracks the number of logical (includes sparse holes) and physical
    // (actual in tar archive) bytes remaining for the current file.
    //
    // Invariant: logicalRemaining >= physicalRemaining
    type fileState interface {
    	logicalRemaining() int64
    	physicalRemaining() int64
    }
    
    // allowedFormats determines which formats can be used.
    // The value returned is the logical OR of multiple possible formats.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top