Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for specifiedLen (0.1 sec)

  1. cmd/httprange.go

    	switch {
    	case resourceSize < 0:
    		return 0, errors.New("Resource size cannot be negative")
    
    	case h == nil:
    		rangeLength = resourceSize
    
    	case h.IsSuffixLength:
    		specifiedLen := -h.Start
    		rangeLength = specifiedLen
    		if specifiedLen > resourceSize {
    			rangeLength = resourceSize
    		}
    
    	case h.Start >= resourceSize:
    		return 0, InvalidRange{
    			OffsetBegin:  h.Start,
    			OffsetEnd:    h.End,
    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