- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for TypeXGlobalHeader (0.13 sec)
-
src/archive/tar/common.go
case TypeXGlobalHeader: h2 := Header{Name: h.Name, Typeflag: h.Typeflag, Xattrs: h.Xattrs, PAXRecords: h.PAXRecords, Format: h.Format} if !reflect.DeepEqual(h, h2) { return FormatUnknown, nil, headerError{"only PAXRecords should be set for TypeXGlobalHeader"} } whyOnlyPAX = "only PAX supports TypeXGlobalHeader" format.mayOnlyBe(FormatPAX) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 13 21:03:27 UTC 2024 - 24.5K bytes - Viewed (0) -
src/archive/tar/writer.go
paxHdrs[paxSize] = strconv.FormatInt(hdr.Size, 10) delete(paxHdrs, paxPath) // Recorded by paxGNUSparseName } */ _ = realSize // Write PAX records to the output. isGlobal := hdr.Typeflag == TypeXGlobalHeader if len(paxHdrs) > 0 || isGlobal { // Write each record to a buffer. var buf strings.Builder // Sort keys for deterministic ordering. for _, k := range slices.Sorted(maps.Keys(paxHdrs)) {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 19.7K bytes - Viewed (0) -
src/archive/tar/writer_test.go
// ---------- 0/0 0 2014-05-13 09:53 file4 file: "testdata/pax-global-records.tar", tests: []testFnc{ testHeader{Header{ Typeflag: TypeXGlobalHeader, PAXRecords: map[string]string{"path": "global1", "mtime": "1500000000.0"}, }, nil}, testHeader{Header{ Typeflag: TypeReg, Name: "file1", }, nil}, testHeader{Header{
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 39.8K bytes - Viewed (0) -
src/archive/tar/reader.go
} format.mayOnlyBe(hdr.Format) // Check for PAX/GNU special headers and files. switch hdr.Typeflag { case TypeXHeader, TypeXGlobalHeader: format.mayOnlyBe(FormatPAX) paxHdrs, err = parsePAX(tr) if err != nil { return nil, err } if hdr.Typeflag == TypeXGlobalHeader { mergePAX(hdr, paxHdrs) return &Header{ Name: hdr.Name, Typeflag: hdr.Typeflag,
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
src/archive/tar/reader_test.go
"comment": "Hello, 世界", "uname": strings.Repeat("long", 10), }, Format: FormatPAX, }}, }, { file: "testdata/pax-global-records.tar", headers: []*Header{{ Typeflag: TypeXGlobalHeader, Name: "global1", PAXRecords: map[string]string{"path": "global1", "mtime": "1500000000.0"}, Format: FormatPAX, }, { Typeflag: TypeReg, Name: "file1",
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
api/go1.txt
pkg archive/tar, const TypeLink ideal-char pkg archive/tar, const TypeReg ideal-char pkg archive/tar, const TypeRegA ideal-char pkg archive/tar, const TypeSymlink ideal-char pkg archive/tar, const TypeXGlobalHeader ideal-char pkg archive/tar, const TypeXHeader ideal-char pkg archive/tar, func NewReader(io.Reader) *Reader pkg archive/tar, func NewWriter(io.Writer) *Writer pkg archive/tar, method (*Reader) Next() (*Header, error)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
api/go1.1.txt
pkg archive/tar, const TypeGNULongName ideal-char pkg archive/tar, const TypeLink = 49 pkg archive/tar, const TypeReg = 48 pkg archive/tar, const TypeRegA = 0 pkg archive/tar, const TypeSymlink = 50 pkg archive/tar, const TypeXGlobalHeader = 103 pkg archive/tar, const TypeXHeader = 120 pkg archive/tar, func FileInfoHeader(os.FileInfo, string) (*Header, error) pkg archive/tar, method (*Header) FileInfo() os.FileInfo pkg archive/zip, const Deflate = 8
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)