Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for holders (0.23 sec)

  1. src/archive/zip/reader_test.go

    			panic(err)
    		}
    		b, err = io.ReadAll(f)
    		if err != nil {
    			panic(err)
    		}
    	}
    	return bytes.NewReader(b), int64(len(b))
    }
    
    func TestIssue8186(t *testing.T) {
    	// Directory headers & data found in the TOC of a JAR file.
    	dirEnts := []string{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    	TypeXHeader = 'x'
    
    	// Type 'g' is used by the PAX format to store key-value records that
    	// are relevant to all subsequent files.
    	// This package only supports parsing and composing such headers,
    	// but does not currently support persisting the global state across files.
    	TypeXGlobalHeader = 'g'
    
    	// Type 'S' indicates a sparse file in the GNU format.
    	TypeGNUSparse = 'S'
    
    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)
  3. src/cmd/cgo/gcc.go

    			// Otherwise one bad and unneeded field in an otherwise okay struct
    			// makes the whole program not compile. Much of the time these
    			// structs are in system headers that cannot be corrected.
    			continue
    		}
    
    		// Round off up to talign, assumed to be a power of 2.
    		off = (off + talign - 1) &^ (talign - 1)
    
    		if f.ByteOffset > off {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. doc/godebug.md

    it defaults to `panicnil=0`, making `panic(nil)` a run-time error.
    Using `panicnil=1` restores the behavior of Go 1.20 and earlier.
    
    When compiling a work module or workspace that declares
    an older Go version, the Go toolchain amends its defaults
    to match that older Go version as closely as possible.
    For example, when a Go 1.21 toolchain compiles a program,
    if the work module's `go.mod` or the workspace's `go.work`
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    		return err
    	}
    	buf := bufio.NewReader(rs)
    
    	// The count of files inside a zip is truncated to fit in a uint16.
    	// Gloss over this by reading headers until we encounter
    	// a bad one, and then only report an ErrFormat or UnexpectedEOF if
    	// the file count modulo 65536 is incorrect.
    	for {
    		f := &File{zip: r, zipr: rdr}
    		err = readDirectoryHeader(f, buf)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    		}
    		data := buf.String()
    		if len(data) > maxSpecialFileSize {
    			return ErrFieldTooLong
    		}
    		if err := tw.writeRawFile(name, data, flag, FormatPAX); err != nil || isGlobal {
    			return err // Global headers return here
    		}
    	}
    
    	// Pack the main header.
    	var f formatter // Ignore errors since they are expected
    	fmtStr := func(b []byte, s string) { f.formatString(b, toASCII(s)) }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader.go

    }
    
    // readGNUSparsePAXHeaders checks the PAX headers for GNU sparse headers.
    // If they are found, then this function reads the sparse map and returns it.
    // This assumes that 0.0 headers have already been converted to 0.1 headers
    // by the PAX header parsing logic.
    func (tr *Reader) readGNUSparsePAXHeaders(hdr *Header) (sparseDatas, error) {
    	// Identify the version of GNU headers.
    	var is1x0 bool
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    					"GOLANG.pkg":     "tar",
    				},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    		// Craft a theoretically valid PAX archive with global headers.
    		// The GNU and BSD tar tools do not parse these the same way.
    		//
    		// BSD tar v3.1.2 parses and ignores all global headers;
    		// the behavior is verified by researching the source code.
    		//
    		//	$ bsdtar -tvf pax-global-records.tar
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  9. src/archive/tar/tar_test.go

    		}
    	}
    }
    
    func TestHeaderAllowedFormats(t *testing.T) {
    	vectors := []struct {
    		header  *Header           // Input header
    		paxHdrs map[string]string // Expected PAX headers that may be needed
    		formats Format            // Expected formats that can encode the header
    	}{{
    		header:  &Header{},
    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{Size: 077777777777},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/00-bug.yml

            CGO_FFLAGS="-O2 -g"
            CGO_LDFLAGS="-O2 -g"
            PKG_CONFIG="pkg-config"
            GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/44/nbbyll_10jd0z8rj_qxm43740000gn/T/go-build2331607515=/tmp/go-build -gno-record-gcc-switches -fno-common"
          render: shell
        validations:
          required: true
    
      - type: textarea
        id: what-did-you-do
    Others
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top