Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validPAXRecord (0.18 sec)

  1. src/archive/tar/strconv.go

    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	if !validPAXRecord(k, v) {
    		return "", "", s, ErrHeader
    	}
    	return k, v, rem, nil
    }
    
    // formatPAXRecord formats a single PAX record, prefixing it with the
    // appropriate length.
    func formatPAXRecord(k, v string) (string, error) {
    	if !validPAXRecord(k, v) {
    		return "", ErrHeader
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    				paxHdrs[k] = v // Ignore local records that may conflict
    			}
    		}
    		whyOnlyPAX = "only PAX supports PAXRecords"
    		format.mayOnlyBe(FormatPAX)
    	}
    	for k, v := range paxHdrs {
    		if !validPAXRecord(k, v) {
    			return FormatUnknown, nil, headerError{fmt.Sprintf("invalid PAX record: %q", k+" = "+v)}
    		}
    	}
    
    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top