Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ifaceE2I (0.26 sec)

  1. src/internal/reflectlite/value.go

    			// A nil ReadWriter passed to nil Reader is OK,
    			// but using ifaceE2I below will panic.
    			// Avoid the panic by returning a nil dst (e.g., Reader) explicitly.
    			return Value{dst, nil, flag(abi.Interface)}
    		}
    		x := valueInterface(v)
    		if dst.NumMethod() == 0 {
    			*(*any)(target) = x
    		} else {
    			ifaceE2I(dst, x, target)
    		}
    		return Value{dst, target, flagIndir | flag(abi.Interface)}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/runtime/iface.go

    //   - github.com/v2pro/plz
    //
    // Do not remove or change the type signature.
    //
    //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}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. src/reflect/value.go

    			// but using ifaceE2I below will panic.
    			// Avoid the panic by returning a nil dst (e.g., Reader) explicitly.
    			return Value{dst, nil, flag(Interface)}
    		}
    		x := valueInterface(v, false)
    		if target == nil {
    			target = unsafe_New(dst)
    		}
    		if dst.NumMethod() == 0 {
    			*(*any)(target) = x
    		} else {
    			ifaceE2I(dst, x, target)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    				}
    
    				{
    					// interface{} to interface{}
    					var iface2 interface{}
    					if err := modePair.dec.Unmarshal(cborFromIface, &iface2); err != nil {
    						t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface2, err)
    					}
    					if diff := cmp.Diff(iface, iface2); diff != "" {
    						t.Errorf("unexpected difference on roundtrip from interface{} to interface{}:\n%s", diff)
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. test/fixedbugs/bug093.go

    	var p *S = nil;
    	var i I = p;  // this should be possible even though p is nil: we still know the type
    	i.M();  // should be possible since we know the type, and don't ever use the receiver
    }
    
    
    /*
    throw: ifaces2i: nil pointer
    SIGSEGV: segmentation violation
    Faulting address: 0x0
    pc: 0x1b7d
    
    0x1b7d?zi
    	throw(30409, 0, 0, ...)
    	throw(0x76c9, 0x0, 0x0, ...)
    0x207f?zi
    	sys·ifaces2i(31440, 0, 31480, ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 1.1K bytes
    - Viewed (0)
  6. src/runtime/runtime-gdb_test.go

    		}
    	}
    }
    
    const autotmpTypeSource = `
    package main
    
    type astruct struct {
    	a, b int
    }
    
    func main() {
    	var iface interface{} = map[string]astruct{}
    	var iface2 interface{} = []astruct{}
    	println(iface, iface2)
    }
    `
    
    // TestGdbAutotmpTypes ensures that types of autotmp variables appear in .debug_info
    // See bug #17830.
    func TestGdbAutotmpTypes(t *testing.T) {
    	checkGdbEnvironment(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. src/html/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 .Iface2", "false", true},
    	{"eq .Iface2 .Iface2", "true", true},
    	{"eq .Map .Map", "true", true},        // Uncomparable types but nil is OK.
    	{"eq .Map nil", "true", true},         // Uncomparable types but nil is OK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top