Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for exists (5.56 sec)

  1. src/archive/zip/reader.go

    	// descriptors and should account for either case when reading
    	// ZIP files to ensure compatibility."
    	//
    	// dataDescriptorLen includes the size of the signature but
    	// first read just those 4 bytes to see if it exists.
    	if _, err := io.ReadFull(r, buf[:4]); err != nil {
    		return err
    	}
    	off := 0
    	maybeSig := readBuf(buf[:4])
    	if maybeSig.uint32() != dataDescriptorSignature {
    		// No data descriptor signature. Keep these four
    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)
  2. src/cmd/cgo/internal/swig/swig_test.go

    func mustHaveSwigOnce(t *testing.T) {
    	swig, err := exec.LookPath("swig")
    	if err != nil {
    		t.Skipf("swig not in PATH: %s", err)
    	}
    
    	// Check that swig was installed with Go support by checking
    	// that a go directory exists inside the swiglib directory.
    	// See https://golang.org/issue/23469.
    	output, err := exec.Command(swig, "-go", "-swiglib").Output()
    	if err != nil {
    		t.Skip("swig is missing Go support")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			if window > len(b[i:]) {
    				window = len(b[i:])
    			}
    			// Fill the window with non-match
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(100)
    			}
    			// Try to find something that doesn't exist
    			p := Count(b[i:i+window], []byte{0})
    			if p != 0 {
    				t.Errorf("TestCountByteNoMatch(%q, 0) = %d", b[i:i+window], p)
    			}
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import (
    	"bytes"
    	"fmt"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // hasNUL reports whether the NUL character exists within s.
    func hasNUL(s string) bool {
    	return strings.Contains(s, "\x00")
    }
    
    // isASCII reports whether the input is an ASCII C-style string.
    func isASCII(s string) bool {
    	for _, c := range s {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  5. src/archive/tar/common.go

    			paxHdrs[paxSchilyXattr+k] = v
    		}
    		whyOnlyPAX = "only PAX supports Xattrs"
    		format.mayOnlyBe(FormatPAX)
    	}
    	if len(h.PAXRecords) > 0 {
    		for k, v := range h.PAXRecords {
    			switch _, exists := paxHdrs[k]; {
    			case exists:
    				continue // Do not overwrite existing records
    			case h.Typeflag == TypeXGlobalHeader:
    				paxHdrs[k] = v // Copy all records
    			case !basicKeys[k] && !strings.HasPrefix(k, paxGNUSparse):
    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)
  6. src/cmd/cgo/gcc.go

    // If the command exits with a non-zero exit status, runGcc prints
    // details about what was run and exits.
    // Otherwise runGcc returns the data written to standard output and standard error.
    // Note that for some of the uses we expect useful data back
    // on standard error, but for those uses gcc must still exit 0.
    func runGcc(stdin []byte, args []string) (string, string) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    may include command line options.
    
    The cgo tool will always invoke the C compiler with the source file's
    directory in the include path; i.e. -I${SRCDIR} is always implied. This
    means that if a header file foo/bar.h exists both in the source
    directory and also in the system include directory (or some other place
    specified by a -I flag), then "#include <foo/bar.h>" will always find the
    local version in preference to any other version.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    			for _, c := range blk {
    				if c == '\n' {
    					cntNewline++
    				}
    			}
    		}
    		return nil
    	}
    
    	// nextToken gets the next token delimited by a newline. This assumes that
    	// at least one newline exists in the buffer.
    	nextToken := func() string {
    		cntNewline--
    		tok, _ := buf.ReadString('\n')
    		return strings.TrimRight(tok, "\n")
    	}
    
    	// Parse for the number of entries.
    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)
  9. src/cmd/api/main_test.go

    	if !strings.Contains(f, "(") {
    		return f
    	}
    	return spaceParensRx.ReplaceAllString(f, "")
    }
    
    // portRemoved reports whether the given port-specific API feature is
    // okay to no longer exist because its port was removed.
    func portRemoved(feature string) bool {
    	return strings.Contains(feature, "(darwin-386)") ||
    		strings.Contains(feature, "(darwin-386-cgo)")
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top