Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for Are (0.14 sec)

  1. doc/go_mem.html

    published in PLDI 2008.
    The definition of data-race-free programs and the guarantee of sequential consistency
    for race-free programs are equivalent to the ones in that work.
    </p>
    
    <p>
    The memory model describes the requirements on program executions,
    which are made up of goroutine executions,
    which in turn are made up of memory operations.
    </p>
    
    <p>
    A <i>memory operation</i> is modeled by four details:
    </p>
    <ul>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    //   - Exactly 1 block of zeros is read and EOF is hit.
    //   - At least 2 blocks of zeros are read.
    func (tr *Reader) readHeader() (*Header, *block, error) {
    	// Two blocks of zero bytes marks the end of the archive.
    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)
  3. src/archive/zip/writer.go

    		return nil, err
    	}
    
    	// The ZIP format has a sad state of affairs regarding character encoding.
    	// Officially, the name and comment fields are supposed to be encoded
    	// in CP-437 (which is mostly compatible with ASCII), unless the UTF-8
    	// flag bit is set. However, there are several problems:
    	//
    	//	* Many ZIP readers still do not support UTF-8.
    	//	* If the UTF-8 flag is cleared, several readers simply interpret the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    		exeSuffix = ".exe"
    	}
    	path := filepath.Join(testenv.GOROOT(nil), "bin", "go"+exeSuffix)
    	if _, err := os.Stat(path); err == nil {
    		return path
    	}
    	return "go"
    }
    
    // contexts are the default contexts which are scanned.
    var contexts = []*build.Context{
    	{GOOS: "linux", GOARCH: "386", CgoEnabled: true},
    	{GOOS: "linux", GOARCH: "386"},
    	{GOOS: "linux", GOARCH: "amd64", CgoEnabled: true},
    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)
  5. src/archive/tar/writer_test.go

    		t.Fatal(err)
    	}
    	if _, err = writer.Write([]byte(contents)); err != nil {
    		t.Fatal(err)
    	}
    	if err := writer.Close(); err != nil {
    		t.Fatal(err)
    	}
    	// Simple test to make sure PAX extensions are in effect
    	if !bytes.Contains(buf.Bytes(), []byte("PaxHeaders.0")) {
    		t.Fatal("Expected at least one PAX header to be written.")
    	}
    	// Test that we can get a long name back out of the archive.
    	reader := NewReader(&buf)
    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)
  6. src/bufio/bufio.go

    		if remain == 0 {
    			return n, nil
    		}
    		if b.err != nil {
    			return n - remain, b.readErr()
    		}
    	}
    }
    
    // Read reads data into p.
    // It returns the number of bytes read into p.
    // The bytes are taken from at most one Read on the underlying [Reader],
    // hence n may be less than len(p).
    // To read exactly len(p) bytes, use io.ReadFull(b, p).
    // If the underlying [Reader] can return a non-zero count with io.EOF,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. src/bufio/scan_test.go

    	return sr.buf.Read(p)
    }
    
    // genLine writes to buf a predictable but non-trivial line of text of length
    // n, including the terminal newline and an occasional carriage return.
    // If addNewline is false, the \r and \n are not emitted.
    func genLine(buf *bytes.Buffer, lineNum, n int, addNewline bool) {
    	buf.Reset()
    	doCR := lineNum%5 == 0
    	if doCR {
    		n--
    	}
    	for i := 0; i < n-1; i++ { // Stop early for \n.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    		}
    	}
    	if iosVer == "" || buildVer == "" {
    		return "", errors.New("failed to parse ideviceinfo output")
    	}
    	verSplit := strings.Split(iosVer, ".")
    	if len(verSplit) > 2 {
    		// Developer images are specific to major.minor ios version.
    		// Cut off the patch version.
    		iosVer = strings.Join(verSplit[:2], ".")
    	}
    	sdkBase := "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    	cmd.Stdout = filter
    	// If the adb subprocess somehow hangs, go test will kill this wrapper
    	// and wait for our os.Stderr (and os.Stdout) to close as a result.
    	// However, if the os.Stderr (or os.Stdout) file descriptors are
    	// passed on, the hanging adb subprocess will hold them open and
    	// go test will hang forever.
    	//
    	// Avoid that by wrapping stderr, breaking the short circuit and
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/arm64.go

    			arm64SpecialOperand[opd.String()] = opd
    		}
    
    		// Handle some special cases.
    		specialMapping := map[string]arm64.SpecialOperand{
    			// The internal representation of CS(CC) and HS(LO) are the same.
    			"CS": arm64.SPOP_HS,
    			"CC": arm64.SPOP_LO,
    		}
    		for s, opd := range specialMapping {
    			arm64SpecialOperand[s] = opd
    		}
    	}
    	if opd, ok := arm64SpecialOperand[name]; ok {
    		return opd
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
Back to top