Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 183 for iface (0.06 sec)

  1. src/go/types/exprstring.go

    }
    
    func writeFieldList(buf *bytes.Buffer, list []*ast.Field, sep string, iface bool) {
    	for i, f := range list {
    		if i > 0 {
    			buf.WriteString(sep)
    		}
    
    		// field list names
    		writeIdentList(buf, f.Names)
    
    		// types of interface methods consist of signatures only
    		if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
    			writeSigExpr(buf, sig)
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue15528.go

    	var fail bool
    	for i, test := range efaces {
    		s := fmt.Sprintf("%[1]T %[1]v", test.x)
    		if s != test.s {
    			fmt.Printf("eface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    	for i, test := range ifaces {
    		s := fmt.Sprintf("%[1]T %#[1]v %[1]s", test.x)
    		if s != test.s {
    			fmt.Printf("iface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    	if got := *(iptr.(*int)); got != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 12 14:31:26 UTC 2016
    - 3.1K bytes
    - Viewed (0)
  3. test/live.go

    var m map[string]int
    var mi map[interface{}]int
    
    // str and iface are used to ensure that a temp is required for runtime calls below.
    func str() string
    func iface() interface{}
    
    func f16() {
    	if b {
    		delete(mi, iface()) // ERROR "stack object .autotmp_[0-9]+ interface \{\}$"
    	}
    	delete(mi, iface())
    	delete(mi, iface())
    }
    
    var m2s map[string]*byte
    var m2 map[[2]string]*byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go

    `
    const noInternetConnection = `Iface	Destination	Gateway 	Flags	RefCnt	Use	Metric	Mask		MTU	Window	IRTT                                                       
    docker0	000011AC	00000000	0001	0	0	0	0000FFFF	0	0	0                                                                            
    virbr0	007AA8C0	00000000	0001	0	0	0	00FFFFFF	0	0	0            
    `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  5. src/runtime/runtime-gdb.py

    		# chop at first space.
    		pc = int(str(pc).split(None, 1)[0], 16)
    	return pc
    
    
    #
    #  For reference, this is what we're trying to do:
    #  eface: p *(*(struct 'runtime.rtype'*)'main.e'->type_->data)->string
    #  iface: p *(*(struct 'runtime.rtype'*)'main.s'->tab->Type->data)->string
    #
    # interface types can't be recognized by their name, instead we check
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  6. src/runtime/alg.go

    	return *(*string)(p) == *(*string)(q)
    }
    func interequal(p, q unsafe.Pointer) bool {
    	x := *(*iface)(p)
    	y := *(*iface)(q)
    	return x.tab == y.tab && ifaceeq(x.tab, x.data, y.data)
    }
    func nilinterequal(p, q unsafe.Pointer) bool {
    	x := *(*eface)(p)
    	y := *(*eface)(q)
    	return x._type == y._type && efaceeq(x._type, x.data, y.data)
    }
    func efaceeq(t *_type, x, y unsafe.Pointer) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/gcimporter_test.go

    	if level > 10 {
    		t.Errorf("%s: embeds itself", named)
    		return
    	}
    
    	iface, _ := named.Underlying().(*types.Interface)
    	if iface == nil {
    		return // not an interface
    	}
    
    	// check explicitly declared methods
    	for i := 0; i < iface.NumExplicitMethods(); i++ {
    		m := iface.ExplicitMethod(i)
    		recv := m.Type().(*types.Signature).Recv()
    		if recv == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/stmt.go

    		}
    		init.Append(Stmt(as))
    
    		// For "go/defer iface.M()", if iface is nil, we need to panic at
    		// the point of the go/defer statement.
    		if call.Op() == ir.OCALLINTER {
    			iface := as.Lhs[0]
    			init.Append(Stmt(ir.NewUnaryExpr(stmtPos, ir.OCHECKNIL, ir.NewUnaryExpr(iface.Pos(), ir.OITAB, iface))))
    		}
    	}
    
    	// Move call into the wrapper function, now that it's safe to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  9. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    	}
    	if mounter.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    		mounter.Iface = mounter.Portals[0] + ":" + mounter.VolName
    	}
    	return attacher.manager.MakeGlobalPDName(*mounter.iscsiDisk), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/plugin_test.go

    }
    
    func TestUniqueTypesAndItabs(t *testing.T) {
    	globalSkip(t)
    	goCmd(t, "build", "-buildmode=plugin", "./iface_a")
    	goCmd(t, "build", "-buildmode=plugin", "./iface_b")
    	goCmd(t, "build", "-o", "iface.exe", "./iface")
    	run(t, "./iface.exe")
    }
    
    func TestIssue18676(t *testing.T) {
    	// make sure we don't add the same itab twice.
    	// The buggy code hangs forever, so use a timeout to check for that.
    	globalSkip(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top