Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for endOffset (0.04 sec)

  1. cmd/erasure-object.go

    	if err != nil {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Calculate endOffset according to length
    	endOffset := startOffset
    	if length > 0 {
    		endOffset += length - 1
    	}
    
    	// Get last part index to read given length.
    	lastPartIndex, _, err := fi.ObjectToPartOffset(ctx, endOffset)
    	if err != nil {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	var totalBytesRead int64
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top