Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 183 for iface (0.04 sec)

  1. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func convTslice(val []uint8) unsafe.Pointer
    
    // interface type assertions x.(T)
    func assertE2I(inter *byte, typ *byte) *byte
    func assertE2I2(inter *byte, typ *byte) *byte
    func panicdottypeE(have, want, iface *byte)
    func panicdottypeI(have, want, iface *byte)
    func panicnildottype(want *byte)
    func typeAssert(s *byte, typ *byte) *byte
    
    // interface switches
    func interfaceSwitch(s *byte, t *byte) (int, *byte)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. src/runtime/print.go

    }
    
    func printslice(s []byte) {
    	sp := (*slice)(unsafe.Pointer(&s))
    	print("[", len(s), "/", cap(s), "]")
    	printpointer(sp.array)
    }
    
    func printeface(e eface) {
    	print("(", e._type, ",", e.data, ")")
    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/instantiate.go

    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    		// The type parameter bound is parameterized with the same type parameters
    		// as the instantiated type; before we can use it for bounds checking we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/issues_test.go

    			}
    		}
    		if obj == nil {
    			t.Fatal("object X not found")
    		}
    		iface := obj.Type().Underlying().(*Interface) // object X must be an interface
    
    		// Each iface method m is embedded; and m's receiver base type name
    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Type().(*Signature).Recv().Type().(*Named).Obj().Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/go/types/issues_test.go

    			}
    		}
    		if obj == nil {
    			t.Fatal("object X not found")
    		}
    		iface := obj.Type().Underlying().(*Interface) // object X must be an interface
    
    		// Each iface method m is embedded; and m's receiver base type name
    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Signature().Recv().Type().(*Named).Obj().Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. src/go/types/instantiate.go

    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    		// The type parameter bound is parameterized with the same type parameters
    		// as the instantiated type; before we can use it for bounds checking we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/reflectdata/helpers.go

    	if hasRType(n, n.TypeWord, "TypeWord") {
    		return n.TypeWord
    	}
    	if dst.IsEmptyInterface() {
    		return concreteRType(pos, src) // direct eface construction
    	}
    	if !src.IsInterface() {
    		return ITabAddrAt(pos, src, dst) // direct iface construction
    	}
    	return TypePtrAt(pos, dst) // convI2I
    }
    
    // ConvIfaceSrcRType asserts that n is a conversion from
    // non-interface type to interface type, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

                if (superclass != null) {
                    queue.add(superclass);
                }
                for (Class<?> iface : type.getInterfaces()) {
                    if (seenInterfaces.add(iface)) {
                        queue.add(Cast.<Class<? super T>>uncheckedCast(iface));
                    }
                }
            }
            return seenInterfaces;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/print/print.go

    	var et5 errorTest5
    	et5.error() // ok, not an error method.
    	// Interfaces can be used with any verb.
    	var iface interface {
    		ToTheMadness() bool // Method ToTheMadness usually returns false
    	}
    	fmt.Printf("%f", iface) // ok: fmt treats interfaces as transparent and iface may well have a float concrete type
    	// Can't print a function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  10. src/archive/tar/common.go

    			for k, v := range sys.PAXRecords {
    				h.PAXRecords[k] = v
    			}
    		}
    	}
    	var doNameLookups = true
    	if iface, ok := fi.(FileInfoNames); ok {
    		doNameLookups = false
    		var err error
    		h.Gname, err = iface.Gname()
    		if err != nil {
    			return nil, err
    		}
    		h.Uname, err = iface.Uname()
    		if err != nil {
    			return nil, err
    		}
    	}
    	if sysStat != nil {
    		return h, sysStat(fi, h, doNameLookups)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top