Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for balk (0.17 sec)

  1. src/cmd/cgo/ast.go

    		f.walk(n.Body, ctxTypeSwitch, visit)
    	case *ast.CommClause:
    		f.walk(n.Comm, ctxStmt, visit)
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.SelectStmt:
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.ForStmt:
    		f.walk(n.Init, ctxStmt, visit)
    		f.walk(&n.Cond, ctxExpr, visit)
    		f.walk(n.Post, ctxStmt, visit)
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.RangeStmt:
    		f.walk(&n.Key, ctxExpr, visit)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/arena/arena.go

    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    be inefficient for allocating only small amounts of small Go values. They're
    best used in bulk, on the order of MiB of memory allocated on each use.
    
    Note that by allowing for this limited form of manual memory allocation
    that use-after-free bugs are possible with regular Go values. This package
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast_go118.go

    	switch n := x.(type) {
    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    		panic("unexpected type")
    
    	case *ast.IndexListExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(n.Indices, ctxExpr, visit)
    	}
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return n.TypeParams
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 30 21:45:10 GMT 2022
    - 730 bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    	n, err = C.sqrt(-1)
    	_, err := C.voidFunc()
    	var n, err = C.sqrt(1)
    
    Calling C function pointers is currently not supported, however you can
    declare Go variables which hold C function pointers and pass them
    back and forth between Go and C. C code may call function pointers
    received from Go. For example:
    
    	package main
    
    	// typedef int (*intFunc) ();
    	//
    	// int
    	// bridge_int_func(intFunc f)
    	// {
    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)
  5. src/bufio/bufio_test.go

    	// Normal execution.
    	for {
    		r1, _, err := r.ReadRune()
    		if err != nil {
    			if err != io.EOF {
    				t.Error("unexpected error on ReadRune:", err)
    			}
    			break
    		}
    		got += string(r1)
    		// Put it back and read it again.
    		if err = r.UnreadRune(); err != nil {
    			t.Fatal("unexpected error on UnreadRune:", err)
    		}
    		r2, _, err := r.ReadRune()
    		if err != nil {
    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)
  6. src/bytes/buffer_test.go

    	}
    	b = b[0:n]
    
    	// Check the resulting bytes
    	if !Equal(buf.Bytes(), b) {
    		t.Fatalf("incorrect result from WriteRune: %q not %q", buf.Bytes(), b)
    	}
    
    	p := make([]byte, utf8.UTFMax)
    	// Read it back with ReadRune
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(p, r)
    		nr, nbytes, err := buf.ReadRune()
    		if nr != r || nbytes != size || err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback.go

    	"unsafe"
    )
    
    // Pass a func value from nestedCall to goCallback using an integer token.
    var callbackMutex sync.Mutex
    var callbackToken int
    var callbackFuncs = make(map[int]func())
    
    // nestedCall calls into C, back into Go, and finally to f.
    func nestedCall(f func()) {
    	// callback(x) calls goCallback(x)
    	callbackMutex.Lock()
    	callbackToken++
    	i := callbackToken
    	callbackFuncs[i] = f
    	callbackMutex.Unlock()
    
    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)
  8. doc/go1.17_spec.html

    raw string literals and interpreted string literals.
    </p>
    
    <p>
    Raw string literals are character sequences between back quotes, as in
    <code>`foo`</code>.  Within the quotes, any character may appear except
    back quote. The value of a raw string literal is the
    string composed of the uninterpreted (implicitly UTF-8-encoded) characters
    between the quotes;
    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)
  9. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const DLT_X2E_XORAYA = 214
    pkg syscall (netbsd-arm64-cgo), const DLT_X2E_XORAYA ideal-int
    pkg syscall (netbsd-arm64-cgo), const DT_BLK = 6
    pkg syscall (netbsd-arm64-cgo), const DT_BLK ideal-int
    pkg syscall (netbsd-arm64-cgo), const DT_CHR = 2
    pkg syscall (netbsd-arm64-cgo), const DT_CHR ideal-int
    pkg syscall (netbsd-arm64-cgo), const DT_DIR = 4
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer.go

    			for _, s := range spd {
    				hdr.Size += s.Length
    			}
    			copy(blk.V7().Size(), zeroBlock[:]) // Reset field
    			f.formatNumeric(blk.V7().Size(), hdr.Size)
    			f.formatNumeric(blk.GNU().RealSize(), realSize)
    		}
    	*/
    	blk.setFormat(FormatGNU)
    	if err := tw.writeRawHeader(blk, hdr.Size, hdr.Typeflag); err != nil {
    		return err
    	}
    
    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)
Back to top