Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,283 for reflect2 (0.18 sec)

  1. CHANGELOG/CHANGELOG-1.23.md

    - github.com/mitchellh/mapstructure: [v1.1.2 → v1.4.1](https://github.com/mitchellh/mapstructure/compare/v1.1.2...v1.4.1)
    - github.com/modern-go/reflect2: [v1.0.1 → v1.0.2](https://github.com/modern-go/reflect2/compare/v1.0.1...v1.0.2)
    - github.com/opencontainers/runc: [v1.0.1 → v1.0.2](https://github.com/opencontainers/runc/compare/v1.0.1...v1.0.2)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 28 21:06:52 UTC 2023
    - 424.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/runtime/stkframe.go

    	f := frame.fn
    	if f.args != abi.ArgsSizeUnknown {
    		argMap.n = f.args / goarch.PtrSize
    		return
    	}
    	// Extract argument bitmaps for reflect stubs from the calls they made to reflect.
    	switch funcname(f) {
    	case "reflect.makeFuncStub", "reflect.methodValueCall":
    		// These take a *reflect.methodValue as their
    		// context register and immediately save it to 0(SP).
    		// Get the methodValue from 0(SP).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    	}
    	if v1.Type() != v2.Type() {
    		return false
    	}
    	if fv, ok := e[v1.Type()]; ok {
    		return fv.Call([]reflect.Value{v1, v2})[0].Bool()
    	}
    
    	hard := func(k reflect.Kind) bool {
    		switch k {
    		case reflect.Array, reflect.Map, reflect.Slice, reflect.Struct:
    			return true
    		}
    		return false
    	}
    
    	if v1.CanAddr() && v2.CanAddr() && hard(v1.Kind()) {
    		addr1 := v1.UnsafeAddr()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  8. test/escape_reflect.go

    	return r.String()
    }
    
    // Unfortunate: x (the interface storage) doesn't need to escape.
    func select2(ch chan string, x string) { // ERROR "leaking param: ch$" "leaking param: x$"
    	vc := reflect.ValueOf(ch)
    	vx := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	cas := reflect.SelectCase{Dir: reflect.SelectSend, Chan: vc, Send: vx}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// In most of the cases, leader is reelected within few cycles.
    	reflector.MaxInternalErrorRetryDuration = time.Second * 30
    	// since the watch-list is provided by the watch cache instruct
    	// the reflector to issue a regular LIST against the store
    	reflector.UseWatchList = ptr.To(false)
    
    	cacher.watchCache = watchCache
    	cacher.reflector = reflector
    
    	go cacher.dispatchEvents()
    	go progressRequester.Run(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. src/unsafe/unsafe.go

    //
    // In general, [reflect.SliceHeader] and [reflect.StringHeader] should be used
    // only as *reflect.SliceHeader and *reflect.StringHeader pointing at actual
    // slices or strings, never as plain structs.
    // A program should not declare or allocate variables of these struct types.
    //
    //	// INVALID: a directly-declared header will not hold Data as a reference.
    //	var hdr reflect.StringHeader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top