Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for physicalRemaining (0.22 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 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 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 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 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)
    			}
    		}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. 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.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  5. 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)
    			}
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top