Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for iface (0.09 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/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)
  6. 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)
  7. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/LoggingTracer.kt

        private val writePosition: () -> Long,
        private val logger: Logger,
        private val level: LogLevel
    ) : Tracer {
    
        // Include a sequence number in the events so the order of events can be preserved in face of log output reordering
        private
        var nextSequenceNumber = 0L
    
        override fun open(frame: String) {
            log(frame, 'O')
        }
    
        override fun close(frame: String) {
            log(frame, 'C')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/internal/fmtsort/sort.go

    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/html/template/doc.go

    This package assumes that template authors are trusted, that Execute's data
    parameter is not, and seeks to preserve the properties below in the face
    of untrusted data:
    
    Structure Preservation Property:
    "... when a template author writes an HTML tag in a safe templating language,
    the browser will interpret the corresponding portion of the output as a tag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:04:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/text/template/exec_test.go

    	{"eq .V1 .V2", "true", true},
    	{"eq .Ptr .Ptr", "true", true},
    	{"eq .Ptr .NilPtr", "false", true},
    	{"eq .NilPtr .NilPtr", "true", true},
    	{"eq .Iface1 .Iface1", "true", true},
    	{"eq .Iface1 .NilIface", "false", true},
    	{"eq .NilIface .NilIface", "true", true},
    	{"eq .NilIface .Iface1", "false", true},
    	{"eq .NilIface 0", "false", true},
    	{"eq 0 .NilIface", "false", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top