Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for physicalRemaining (0.23 sec)

  1. src/archive/tar/writer.go

    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fw regFileWriter) logicalRemaining() int64 {
    	return fw.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fw regFileWriter) physicalRemaining() int64 {
    	return fw.nb
    }
    
    // sparseFileWriter is a fileWriter for writing data to a sparse file entry.
    type sparseFileWriter struct {
    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

    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fr regFileReader) logicalRemaining() int64 {
    	return fr.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fr regFileReader) physicalRemaining() int64 {
    	return fr.nb
    }
    
    // sparseFileReader is a fileReader for reading data from a sparse file entry.
    type sparseFileReader struct {
    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 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 {
    					t.Errorf("test %d.%d, physicalRemaining() = %d, want %d", i, j, got, tf.wantPCnt)
    				}
    			default:
    				t.Fatalf("test %d.%d, unknown test operation: %T", i, j, tf)
    			}
    		}
    
    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 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 {
    					t.Errorf("test %d.%d, physicalRemaining() = %d, want %d", i, j, got, tf.wantPCnt)
    				}
    			default:
    				t.Fatalf("test %d.%d, unknown test operation: %T", i, j, tf)
    			}
    		}
    	}
    }
    
    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