- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parsePAX (0.09 sec)
-
src/archive/tar/reader.go
} } if err != nil { return ErrHeader } } hdr.PAXRecords = paxHdrs return nil } // parsePAX parses PAX headers. // If an extended header (type 'x') is invalid, ErrHeader is returned. func parsePAX(r io.Reader) (map[string]string, error) { buf, err := readSpecialFile(r) if err != nil { return nil, err } sbuf := string(buf)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
src/archive/tar/reader_test.go
} for i, v := range vectors { r := strings.NewReader(v.in) got, err := parsePAX(r) if !maps.Equal(got, v.want) && !(len(got) == 0 && len(v.want) == 0) { t.Errorf("test %d, parsePAX():\ngot %v\nwant %v", i, got, v.want) } if ok := err == nil; ok != v.ok { t.Errorf("test %d, parsePAX(): got %v, want %v", i, ok, v.ok) } } } func TestReadOldGNUSparseMap(t *testing.T) {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)