Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for iface (0.04 sec)

  1. src/runtime/iface.go

    //
    //go:linkname reflect_ifaceE2I reflect.ifaceE2I
    func reflect_ifaceE2I(inter *interfacetype, e eface, dst *iface) {
    	*dst = iface{assertE2I(inter, e._type), e.data}
    }
    
    //go:linkname reflectlite_ifaceE2I internal/reflectlite.ifaceE2I
    func reflectlite_ifaceE2I(inter *interfacetype, e eface, dst *iface) {
    	*dst = iface{assertE2I(inter, e._type), e.data}
    }
    
    func iterate_itabs(fn func(*itab)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/ureader.go

    	// after we've called SetUnderlying everywhere.
    	//
    	// TODO(mdempsky): After CL 424876 lands, it should be safe to call
    	// iface.Complete() immediately.
    	r.p.ifaces = append(r.p.ifaces, iface)
    
    	return iface
    }
    
    func (r *reader) signature(recv *types.Var, rtparams, tparams []*types.TypeParam) *types.Signature {
    	r.Sync(pkgbits.SyncSignature)
    
    	params := r.params()
    	results := r.params()
    	variadic := r.Bool()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/subst.go

    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    			iface.implicit = t.implicit
    			assert(t.complete) // otherwise we are copying incomplete data
    			iface.complete = t.complete
    			// If we've changed the interface type, we may need to replace its
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pkg/volume/iscsi/iscsi.go

    	if err != nil {
    		return nil, err
    	}
    
    	initIface := iface
    	if initiatorName != "" {
    		iface = bkportal[0] + ":" + spec.Name()
    	}
    
    	return &iscsiDisk{
    		podUID:        podUID,
    		VolName:       spec.Name(),
    		Portals:       bkportal,
    		Iqn:           iqn,
    		Lun:           lun,
    		InitIface:     initIface,
    		Iface:         iface,
    		chapDiscovery: chapDiscovery,
    		chapSession:   chapSession,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/go/types/subst.go

    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    			iface.implicit = t.implicit
    			assert(t.complete) // otherwise we are copying incomplete data
    			iface.complete = t.complete
    			// If we've changed the interface type, we may need to replace its
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/named.go

    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    				underlying = iface
    			}
    			iface.methods = methods
    			iface.tset = nil // recompute type set with new methods
    
    			// If check != nil, check.newInterface will have saved the interface for later completion.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/go/types/named.go

    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    				underlying = iface
    			}
    			iface.methods = methods
    			iface.tset = nil // recompute type set with new methods
    
    			// If check != nil, check.newInterface will have saved the interface for later completion.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/iimport.go

    // for interface methods to def.
    func canReuse(def *types.Named, rhs types.Type) bool {
    	if def == nil {
    		return true
    	}
    	iface, _ := rhs.(*types.Interface)
    	if iface == nil {
    		return true
    	}
    	// Don't use iface.Empty() here as iface may not be complete.
    	return iface.NumEmbeddeds() == 0 && iface.NumExplicitMethods() == 0
    }
    
    type importReader struct {
    	p          *iimporter
    	declReader bytes.Reader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top