Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,811 for reflect1 (0.31 sec)

  1. test/reflectmethod2.go

    // assigned to interfaces, but only if reflect.Type.MethodByName is
    // never used. Test it here.
    
    package main
    
    import reflect1 "reflect"
    
    var called = false
    
    type M int
    
    func (m M) UniqueMethodName() {
    	called = true
    }
    
    var v M
    
    type MyType interface {
    	MethodByName(string) (reflect1.Method, bool)
    }
    
    func main() {
    	var t MyType = reflect1.TypeOf(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 21:19:20 UTC 2016
    - 719 bytes
    - Viewed (0)
  2. operator/pkg/util/reflect.go

    	vv := reflect.ValueOf(v)
    	return vv.Kind() == reflect.Ptr && vv.Elem().Kind() == reflect.Interface && vv.Elem().Elem().Kind() == reflect.Slice
    }
    
    // IsTypeStructPtr reports whether v is a struct ptr type.
    func IsTypeStructPtr(t reflect.Type) bool {
    	if t == reflect.TypeOf(nil) {
    		return false
    	}
    	return t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Struct
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  3. okcurl/src/main/resources/META-INF/native-image/okhttp3/okcurl/reflect-config.json

    Jesse Wilson <******@****.***> 1703114827 -0500
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4 bytes
    - Viewed (0)
  4. okhttp/src/main/resources/META-INF/native-image/okhttp/okhttp/reflect-config.json

    Jesse Wilson <******@****.***> 1703114827 -0500
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 438 bytes
    - Viewed (0)
  5. test/fixedbugs/issue19168.go

    package p
    
    import (
    	"reflect"
    	"unsafe"
    
    	reflect2 "reflect"
    )
    
    func sink(e interface{})
    
    func a(hdr *reflect.SliceHeader, p *byte) {
    	hdr.Data = uintptr(unsafe.Pointer(p)) // ERROR "write barrier"
    }
    
    func b(hdr *reflect.StringHeader, p *byte) {
    	hdr.Data = uintptr(unsafe.Pointer(p)) // ERROR "write barrier"
    }
    
    func c(hdrs *[1]reflect.SliceHeader, p *byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 17:21:50 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  6. src/reflect/makefunc.go

    // semantically equivalent to the input as far as the user of package
    // reflect can tell, but the true func representation can be handled
    // by code like Convert and Interface and Assign.
    func makeMethodValue(op string, v Value) Value {
    	if v.flag&flagMethod == 0 {
    		panic("reflect: internal error: invalid use of makeMethodValue")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/encoding/asn1/common.go

    		return false, TagInteger, false, true
    	}
    	switch t.Kind() {
    	case reflect.Bool:
    		return false, TagBoolean, false, true
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return false, TagInteger, false, true
    	case reflect.Struct:
    		return false, TagSequence, true, true
    	case reflect.Slice:
    		if t.Elem().Kind() == reflect.Uint8 {
    			return false, TagOctetString, false, true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  8. test/interface/fake.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test interface comparisons using types hidden
    // inside reflected-on structs.
    
    package main
    
    import "reflect"
    
    type T struct {
    	F float32
    	G float32
    
    	S string
    	T string
    
    	U uint32
    	V uint32
    
    	W uint32
    	X uint32
    
    	Y uint32
    	Z uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/versioning_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if e, a := []string{"v1beta1"}, crd.Status.StoredVersions; !reflect.DeepEqual(e, a) {
    		t.Errorf("expected %v, got %v", e, a)
    	}
    
    	// Changing CRD storage version should be reflected immediately
    	crd.Spec.Versions = versionsV1Beta2Storage
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 13:10:47 UTC 2021
    - 8.2K bytes
    - Viewed (0)
  10. src/os/exec/exec_posix_test.go

    			// so we don't care whether cmd.Dir is reflected in cmd.Environ.
    			cmd.Env = append(cmd.Environ(), "PWD="+tc.pwd)
    			cmd.Dir = tc.dir
    
    			var pwds []string
    			for _, kv := range cmd.Environ() {
    				if strings.HasPrefix(kv, "PWD=") {
    					pwds = append(pwds, strings.TrimPrefix(kv, "PWD="))
    				}
    			}
    
    			wantPWDs := []string{tc.pwd}
    			if !reflect.DeepEqual(pwds, wantPWDs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 20:21:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
Back to top