Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for totalLength (0.34 sec)

  1. cmd/erasure-metadata.go

    }
    
    // ShardFileSize - returns final erasure size from original size.
    func (e ErasureInfo) ShardFileSize(totalLength int64) int64 {
    	if totalLength == 0 {
    		return 0
    	}
    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / e.BlockSize
    	lastBlockSize := totalLength % e.BlockSize
    	lastShardSize := ceilFrac(lastBlockSize, int64(e.DataBlocks))
    	return numShards*e.ShardSize() + lastShardSize
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  2. cmd/storage-datatypes.go

    }
    
    // ShardFileSize - returns final erasure size from original size.
    func (fi FileInfo) ShardFileSize(totalLength int64) int64 {
    	if totalLength == 0 {
    		return 0
    	}
    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / fi.Erasure.BlockSize
    	lastBlockSize := totalLength % fi.Erasure.BlockSize
    	lastShardSize := ceilFrac(lastBlockSize, int64(fi.Erasure.DataBlocks))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            byte[] eolData = createEolData();
    
            // Combine all data
            int totalLength = avFlagsData.length + avTimestampData.length + avTargetNameData.length + eolData.length;
            byte[] fullData = new byte[totalLength];
            int pos = 0;
            System.arraycopy(avFlagsData, 0, fullData, pos, avFlagsData.length);
            pos += avFlagsData.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top