Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for chunkSize (0.07 sec)

  1. cmd/test-utils_test.go

    func calculateStreamContentLength(dataLen, chunkSize int64) int64 {
    	if dataLen <= 0 {
    		return 0
    	}
    	chunksCount := dataLen / chunkSize
    	remainingBytes := dataLen % chunkSize
    	var streamLen int64
    	streamLen += chunksCount * calculateSignedChunkLength(chunkSize)
    	if remainingBytes > 0 {
    		streamLen += calculateSignedChunkLength(remainingBytes)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    				int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
    				testCase.accessKey, testCase.secretKey)
    		case testCase.contentEncoding == "":
    			req, err = newTestStreamingSignedRequest(http.MethodPut,
    				getPutObjectURL("", testCase.bucketName, testCase.objectName),
    				int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
    				testCase.accessKey, testCase.secretKey)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top