Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for totalLength (0.18 sec)

  1. cmd/erasure-decode.go

    	if offset < 0 || length < 0 {
    		return -1, errInvalidArgument
    	}
    	if offset+length > totalLength {
    		return -1, errInvalidArgument
    	}
    
    	if length == 0 {
    		return 0, nil
    	}
    
    	reader := newParallelReader(readers, e, offset, totalLength)
    	if len(prefer) == len(readers) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. cmd/erasure-coding.go

    }
    
    // ShardFileSize - returns final erasure size from original size.
    func (e *Erasure) 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. internal/s3select/genmessage.go

    	buf.WriteByte(7)
    	buf.Write([]byte{0, 4})
    	buf.WriteString("Cont")
    
    	header := buf.Bytes()
    	headerLength := len(header)
    	payloadLength := 0
    	totalLength := totalByteLength(headerLength, payloadLength)
    
    	buf = new(bytes.Buffer)
    	binary.Write(buf, binary.BigEndian, uint32(totalLength))
    	binary.Write(buf, binary.BigEndian, uint32(headerLength))
    	prelude := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(prelude))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  4. cmd/dummy-data-generator_test.go

    //	          return string(b)
    //	}
    //
    // for example, the following is true:
    //
    // f(NewDummyDataGen(100, 0)) == f(NewDummyDataGen(50, 0)) + f(NewDummyDataGen(50, 50))
    func NewDummyDataGen(totalLength, skipOffset int64) io.ReadSeeker {
    	if totalLength < 0 {
    		panic("Negative length passed to DummyDataGen!")
    	}
    	if skipOffset < 0 {
    		panic("Negative rotations are not allowed")
    	}
    
    	skipOffset %= int64(len(alphabets))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  6. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. internal/s3select/message.go

    }
    
    func genMessage(header, payload []byte) []byte {
    	headerLength := len(header)
    	payloadLength := len(payload)
    	totalLength := totalByteLength(headerLength, payloadLength)
    
    	buf := new(bytes.Buffer)
    	binary.Write(buf, binary.BigEndian, uint32(totalLength))
    	binary.Write(buf, binary.BigEndian, uint32(headerLength))
    	prelude := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(prelude))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top