Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/httprange.go

    	default:
    		return 0, errors.New("Unexpected range specification case")
    	}
    
    	return rangeLength, nil
    }
    
    // GetOffsetLength computes the start offset and length of the range
    // given the size of the resource
    func (h *HTTPRangeSpec) GetOffsetLength(resourceSize int64) (start, length int64, err error) {
    	if h == nil {
    		// No range specified, implies whole object.
    		return 0, resourceSize, nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top