Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 122 for elem1 (0.04 sec)

  1. src/cmd/compile/internal/types2/unify.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Slice:
    		// Two slice types unify if their element types unify.
    		if y, ok := y.(*Slice); ok {
    			return u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Struct:
    		// Two struct types unify if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. src/internal/reflectlite/value.go

    func (v Value) CanSet() bool {
    	return v.flag&(flagAddr|flagRO) == flagAddr
    }
    
    // Elem returns the value that the interface v contains
    // or that the pointer v points to.
    // It panics if v's Kind is not Interface or Pointer.
    // It returns the zero Value if v is nil.
    func (v Value) Elem() Value {
    	k := v.kind()
    	switch k {
    	case abi.Interface:
    		var eface any
    		if v.typ().NumMethod() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/runtime/alg.go

    		if len(i.Methods) == 0 {
    			return nilinterhash(p, h)
    		}
    		return interhash(p, h)
    	case abi.Array:
    		a := (*arraytype)(unsafe.Pointer(t))
    		for i := uintptr(0); i < a.Len; i++ {
    			h = typehash(a.Elem, add(p, i*a.Elem.Size_), h)
    		}
    		return h
    	case abi.Struct:
    		s := (*structtype)(unsafe.Pointer(t))
    		for _, f := range s.Fields {
    			if f.Name.IsBlank() {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. cmd/object-api-utils_test.go

    	"github.com/minio/minio/internal/crypto"
    	"github.com/minio/pkg/v3/trie"
    )
    
    func pathJoinOld(elem ...string) string {
    	trailingSlash := ""
    	if len(elem) > 0 {
    		if hasSuffixByte(elem[len(elem)-1], SlashSeparatorChar) {
    			trailingSlash = SlashSeparator
    		}
    	}
    	return path.Join(elem...) + trailingSlash
    }
    
    func BenchmarkPathJoinOld(b *testing.B) {
    	b.Run("PathJoin", func(b *testing.B) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/go/types/typexpr.go

    		// Consequently, generic types cannot be parenthesized.
    		return check.definedType(e.X, def)
    
    	case *ast.ArrayType:
    		if e.Len == nil {
    			typ := new(Slice)
    			setDefType(def, typ)
    			typ.elem = check.varType(e.Elt)
    			return typ
    		}
    
    		typ := new(Array)
    		setDefType(def, typ)
    		// Provide a more specific error when encountering a [...] array
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    	if err := util.UnmarshalWithJSONPB(iopvalString, values, true); err != nil {
    		return util.NewErrs(err), ""
    	}
    
    	validationErrors = util.AppendErrs(validationErrors, ValidateSubTypes(reflect.ValueOf(values).Elem(), failOnMissingValidation, values, iopls))
    
    	featureErrors, featureWarningMessages := validateFeatures(values, iopls)
    	validationErrors = util.AppendErrs(validationErrors, featureErrors)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		tu := t.Underlying().(*types.Array)
    		elem := tu.Elem()
    		// Calculate offset of each element array.
    		fields := []*types.Var{
    			types.NewVar(token.NoPos, nil, "fake0", elem),
    			types.NewVar(token.NoPos, nil, "fake1", elem),
    		}
    		offsets := arch.sizes.Offsetsof(fields)
    		elemoff := int(offsets[1])
    		for i := 0; i < int(tu.Len()); i++ {
    			cc = appendComponentsRecursive(arch, elem, cc, suffix+"_"+strconv.Itoa(i), off+i*elemoff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/config/helpers_test.go

    		paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path))...)
    	case reflect.Struct:
    		for i := 0; i < tp.NumField(); i++ {
    			field := tp.Field(i)
    			paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, field.Type, path.Child(field.Name)))...)
    		}
    	case reflect.Map, reflect.Slice:
    		paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path.Key("*")))...)
    	case reflect.Interface:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    			"prefix/ns/pod3": *makeTestStoreElement(makeTestPod("pod3", 6)),
    		}
    		items := make(map[string]storeElement)
    		for _, item := range store.List() {
    			elem := item.(*storeElement)
    			items[elem.Key] = *elem
    		}
    		if !apiequality.Semantic.DeepEqual(expected, items) {
    			t.Errorf("expected %v, got %v", expected, items)
    		}
    	}
    
    	// Test Replace.
    	store.Replace([]interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  10. src/testing/fstest/testfs.go

    	if _, ok := t.fsys.(fs.GlobFS); !ok {
    		return
    	}
    
    	// Make a complex glob pattern prefix that only matches dir.
    	var glob string
    	if dir != "." {
    		elem := strings.Split(dir, "/")
    		for i, e := range elem {
    			var pattern []rune
    			for j, r := range e {
    				if r == '*' || r == '?' || r == '\\' || r == '[' || r == '-' {
    					pattern = append(pattern, '\\', r)
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top