- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for formatPAXRecord (0.05 sec)
-
src/archive/tar/strconv_test.go
for _, v := range vectors { got, err := formatPAXRecord(v.inKey, v.inVal) ok := (err == nil) if ok != v.ok { if v.ok { t.Errorf("formatPAXRecord(%q, %q): got format failure, want success", v.inKey, v.inVal) } else { t.Errorf("formatPAXRecord(%q, %q): got format success, want failure", v.inKey, v.inVal) } } if got != v.want { t.Errorf("formatPAXRecord(%q, %q): got %q, want %q",
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 15K bytes - Viewed (0) -
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 } const padding = 3 // Extra padding for ' ', '=', and '\n'
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 9.1K bytes - Viewed (0)