Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for because (0.17 sec)

  1. src/cmd/cgo/doc.go

    Pinner is not unpinned while the Go pointer is stored in C memory.
    This implies that C code may not keep a copy of a string, slice,
    channel, and so forth, because they cannot be pinned with
    [runtime.Pinner].
    
    The _GoString_ type also may not be pinned with [runtime.Pinner].
    Because it includes a Go pointer, the memory it points to is only pinned
    for the duration of the call; _GoString_ values may not be retained by C
    code.
    
    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)
  2. src/cmd/cgo/internal/test/issue18146.go

    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    	// Tediously, RLIMIT_NPROC was left out of the syscall package,
    	// probably because it is not in POSIX.1, so we define it here.
    	// It is not defined on Solaris.
    	var nproc int
    	setNproc := true
    	switch runtime.GOOS {
    	default:
    		setNproc = false
    	case "aix":
    		nproc = 9
    	case "linux":
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    </pre>
    
    <p>
    <code>B0</code> and <code>B1</code> are different because they are new types
    created by distinct <a href="#Type_definitions">type definitions</a>;
    <code>func(int, float64) *B0</code> and <code>func(x int, y float64) *[]string</code>
    are different because <code>B0</code> is different from <code>[]string</code>.
    </p>
    
    
    <h3 id="Assignability">Assignability</h3>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    // biggestZipBytes returns the bytes of a zip file biggest.zip
    // that contains a zip file bigger.zip that contains a zip file
    // big.zip that contains big.file, which contains 2³²-1 zeros.
    // The big.zip file is interesting because it has no zip64 header,
    // much like the innermost zip files in the well-known 42.zip.
    //
    // biggest.zip was generated by changing isZip64 to use > uint32max
    // instead of >= uint32max and then running this program:
    //
    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)
  5. src/cmd/cgo/internal/test/callback.go

    func nestedCall(f func()) {
    	// callback(x) calls goCallback(x)
    	callbackMutex.Lock()
    	callbackToken++
    	i := callbackToken
    	callbackFuncs[i] = f
    	callbackMutex.Unlock()
    
    	// Pass the address of i because the C function was written to
    	// take a pointer.  We could pass an int if we felt like
    	// rewriting the C code.
    	C.callback(unsafe.Pointer(&i))
    
    	callbackMutex.Lock()
    	delete(callbackFuncs, i)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  6. src/bufio/bufio_test.go

    	}
    }
    
    type dataAndEOFReader string
    
    func (r dataAndEOFReader) Read(p []byte) (int, error) {
    	return copy(p, r), io.EOF
    }
    
    func TestPeekThenUnreadRune(t *testing.T) {
    	// This sequence used to cause a crash.
    	r := NewReader(strings.NewReader("x"))
    	r.ReadRune()
    	r.Peek(1)
    	r.UnreadRune()
    	r.ReadRune() // Used to panic here
    }
    
    var testOutput = []byte("0123456789abcdefghijklmnopqrstuvwxy")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    		in.expectText("expected identifier after '#'")
    	}
    	if !in.enabled() {
    		// Can only start including again if we are at #else or #endif but also
    		// need to keep track of nested #if[n]defs.
    		// We let #line through because it might affect errors.
    		switch in.Stack.Text() {
    		case "else", "endif", "ifdef", "ifndef", "line":
    			// Press on.
    		default:
    			return false
    		}
    	}
    	switch in.Stack.Text() {
    	case "define":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue27340/a.go

    // No runtime test; just make sure it compiles.
    // In separate directory to isolate #pragma GCC diagnostic.
    
    package issue27340
    
    // We use the #pragma to avoid a compiler warning about incompatible
    // pointer types, because we generate code passing a struct ptr rather
    // than using the typedef. This warning is expected and does not break
    // a normal build.
    // We can only disable -Wincompatible-pointer-types starting with GCC 5.
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/lex.go

    )
    
    // IsRegisterShift reports whether the token is one of the ARM register shift operators.
    func IsRegisterShift(r ScanToken) bool {
    	return ROT <= r && r <= LSH // Order looks backwards because these are negative.
    }
    
    func (t ScanToken) String() string {
    	switch t {
    	case scanner.EOF:
    		return "EOF"
    	case scanner.Ident:
    		return "identifier"
    	case scanner.Int:
    		return "integer constant"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. doc/go_spec.html

    </pre>
    
    <p>
    <code>B0</code> and <code>B1</code> are different because they are new types
    created by distinct <a href="#Type_definitions">type definitions</a>;
    <code>func(int, float64) *B0</code> and <code>func(x int, y float64) *[]string</code>
    are different because <code>B0</code> is different from <code>[]string</code>;
    and <code>P1</code> and <code>P2</code> are different because they are different
    type parameters.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top