Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for start$default (0.06 sec)

  1. cmd/httprange.go

    		}
    
    	case h.End > -1:
    		end := h.End
    		if resourceSize <= end {
    			end = resourceSize - 1
    		}
    		rangeLength = end - h.Start + 1
    
    	case h.End == -1:
    		rangeLength = resourceSize - h.Start
    
    	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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top