Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 179 for nelem (0.26 sec)

  1. src/internal/fmtsort/sort.go

    			}
    		}
    		return 0
    	case reflect.Interface:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		c := compare(reflect.ValueOf(aVal.Elem().Type()), reflect.ValueOf(bVal.Elem().Type()))
    		if c != 0 {
    			return c
    		}
    		return compare(aVal.Elem(), bVal.Elem())
    	default:
    		// Certain types cannot appear as keys (maps, funcs, slices), but be explicit.
    		panic("bad type in compare: " + aType.String())
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/map_fast32.go

    				*(*unsafe.Pointer)(k) = nil
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*4+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    		return fmt.Errorf("couldn't compute key: %v", err)
    	}
    	elem := &storeElement{Key: key, Object: event.Object}
    	elem.Labels, elem.Fields, err = w.getAttrsFunc(event.Object)
    	if err != nil {
    		return err
    	}
    
    	wcEvent := &watchCacheEvent{
    		Type:            event.Type,
    		Object:          elem.Object,
    		ObjLabels:       elem.Labels,
    		ObjFields:       elem.Fields,
    		Key:             key,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func makechan64(chanType *byte, size int64) (hchan chan any)
    func makechan(chanType *byte, size int) (hchan chan any)
    func chanrecv1(hchan <-chan any, elem *any)
    func chanrecv2(hchan <-chan any, elem *any) bool
    func chansend1(hchan chan<- any, elem *any)
    func closechan(hchan chan<- any)
    func chanlen(hchan any) int
    func chancap(hchan any) int
    
    var writeBarrier struct {
    	enabled bool
    	pad     [3]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)
  5. src/go/types/conversions.go

    					*cause = "conversion of slice to array requires go1.20 or later"
    				}
    				return false
    			}
    		case *Pointer:
    			if a, _ := under(a.Elem()).(*Array); a != nil {
    				if Identical(s.Elem(), a.Elem()) {
    					if check == nil || check.allowVersion(x, go1_17) {
    						return true
    					}
    					// check != nil
    					if cause != nil {
    						*cause = "conversion of slice to array pointer requires go1.17 or later"
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/encoding/json/decode.go

    		}
    
    		// Prevent infinite loop if v is an interface pointing to its own address:
    		//     var v interface{}
    		//     v = &v
    		if v.Elem().Kind() == reflect.Interface && v.Elem().Elem() == v {
    			v = v.Elem()
    			break
    		}
    		if v.IsNil() {
    			v.Set(reflect.New(v.Type().Elem()))
    		}
    		if v.Type().NumMethod() > 0 && v.CanInterface() {
    			if u, ok := v.Interface().(Unmarshaler); ok {
    				return u, nil, reflect.Value{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  7. src/runtime/type.go

    		return typesEqual(mt.Key, mv.Key, seen) && typesEqual(mt.Elem, mv.Elem, seen)
    	case abi.Pointer:
    		pt := (*ptrtype)(unsafe.Pointer(t))
    		pv := (*ptrtype)(unsafe.Pointer(v))
    		return typesEqual(pt.Elem, pv.Elem, seen)
    	case abi.Slice:
    		st := (*slicetype)(unsafe.Pointer(t))
    		sv := (*slicetype)(unsafe.Pointer(v))
    		return typesEqual(st.Elem, sv.Elem, seen)
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(t))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. src/text/template/exec.go

    	mark := s.mark()
    	oneIteration := func(index, elem reflect.Value) {
    		if len(r.Pipe.Decl) > 0 {
    			if r.Pipe.IsAssign {
    				// With two variables, index comes first.
    				// With one, we use the element.
    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    					s.setVar(r.Pipe.Decl[0].Ident[0], elem)
    				}
    			} else {
    				// Set top var (lexically the second if there
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

      // setHrefParam updates the specified parameter in the  href of an <a>
      // element to make it operate on the specified src.
      function setHrefParam(id, param, src) {
        const elem = document.getElementById(id);
        if (!elem) return;
    
        let url = new URL(elem.href);
        url.hash = '';
    
        // Copy params from this page's URL.
        const params = url.searchParams;
        for (const p of new URLSearchParams(window.location.search)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. src/runtime/cgocheck.go

    		at := (*arraytype)(unsafe.Pointer(typ))
    		for i := uintptr(0); i < at.Len; i++ {
    			if off < at.Elem.Size_ {
    				cgoCheckUsingType(at.Elem, src, off, size)
    			}
    			src = add(src, at.Elem.Size_)
    			skipped := off
    			if skipped > at.Elem.Size_ {
    				skipped = at.Elem.Size_
    			}
    			checked := at.Elem.Size_ - skipped
    			off -= skipped
    			if size <= checked {
    				return
    			}
    			size -= checked
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top