Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 135 for iface (0.14 sec)

  1. src/reflect/type.go

    	// methods along the way, or else V does not implement T.
    	// This lets us run the scan in overall linear time instead of
    	// the quadratic time  a naive search would require.
    	// See also ../runtime/iface.go.
    	if V.Kind() == abi.Interface {
    		v := (*interfaceType)(unsafe.Pointer(V))
    		i := 0
    		for j := 0; j < len(v.Methods); j++ {
    			tm := &t.Methods[i]
    			tmName := t.nameOff(tm.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/runtime/runtime2.go

    	key uintptr
    }
    
    type funcval struct {
    	fn uintptr
    	// variable-size, fn-specific data here
    }
    
    type iface struct {
    	tab  *itab
    	data unsafe.Pointer
    }
    
    type eface struct {
    	_type *_type
    	data  unsafe.Pointer
    }
    
    func efaceOf(ep *any) *eface {
    	return (*eface)(unsafe.Pointer(ep))
    }
    
    // The guintptr, muintptr, and puintptr are all used to bypass write barriers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    			if _, ok := rv.Interface().(Iface); ok != table.impl {
    				if table.impl {
    					t.Errorf("test-%d-%d: type=%v fails to implement Iface.\n", i, j, table.typ)
    				} else {
    					t.Errorf("test-%d-%d: type=%v should NOT implement Iface\n", i, j, table.typ)
    				}
    				continue
    			}
    
    			if !table.impl {
    				continue
    			}
    
    			v := rv.Interface().(Iface).Get()
    			if v != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.Complete()
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    	alias := NewAlias(obj, Typ[Int])
    	alias.Underlying() // must not panic
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.NumMethods() // unlike go/types, there is no Complete() method, so we complete implicitly
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  6. test/codegen/ifaces.go

    Keith Randall <******@****.***> 1695069109 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 621 bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    		tmap:     make(map[string]loader.Sym),
    		tdmap:    make(map[loader.Sym]loader.Sym),
    		rtmap:    make(map[loader.Sym]loader.Sym),
    	}
    	d.typeRuntimeEface = d.lookupOrDiag("type:runtime.eface")
    	d.typeRuntimeIface = d.lookupOrDiag("type:runtime.iface")
    
    	if ctxt.HeadType == objabi.Haix {
    		// Initial map used to store package size for each DWARF section.
    		dwsectCUSize = make(map[string]uint64)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. src/runtime/error.go

    	case abi.Int16:
    		print(typestring, "(", *(*int16)(eface.data), ")")
    	case abi.Int32:
    		print(typestring, "(", *(*int32)(eface.data), ")")
    	case abi.Int64:
    		print(typestring, "(", *(*int64)(eface.data), ")")
    	case abi.Uint:
    		print(typestring, "(", *(*uint)(eface.data), ")")
    	case abi.Uint8:
    		print(typestring, "(", *(*uint8)(eface.data), ")")
    	case abi.Uint16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/sync/poolqueue.go

    	// otherwise. A slot is still in use until *both* the tail
    	// index has moved beyond it and typ has been set to nil. This
    	// is set to nil atomically by the consumer and read
    	// atomically by the producer.
    	vals []eface
    }
    
    type eface struct {
    	typ, val unsafe.Pointer
    }
    
    const dequeueBits = 32
    
    // dequeueLimit is the maximum size of a poolDequeue.
    //
    // This must be at most (1<<dequeueBits)/2 because detecting fullness
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/net/net_windows_test.go

    	}
    	slices.Sort(have)
    
    	ifaces := make(map[string]bool)
    	err = netshInterfaceIPShowInterface("ipv6", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = netshInterfaceIPShowInterface("ipv4", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := make([]string, 0)
    	for name, isup := range ifaces {
    		want = append(want, toString(name, isup))
    	}
    	slices.Sort(want)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top