Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for calculateStreamContentLength (0.15 sec)

  1. cmd/test-utils_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	return NewPutObjReader(hr)
    }
    
    // calculateSignedChunkLength - calculates the length of the overall stream (data + metadata)
    func calculateStreamContentLength(dataLen, chunkSize int64) int64 {
    	if dataLen <= 0 {
    		return 0
    	}
    	chunksCount := dataLen / chunkSize
    	remainingBytes := dataLen % chunkSize
    	var streamLen int64
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top