Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 166 for elem1 (0.04 sec)

  1. 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)
  2. src/cmd/compile/internal/walk/order.go

    		n := n.(*ir.CompLitExpr)
    		for _, elem := range n.List {
    			elem := elem.(*ir.StructKeyExpr)
    			if mapKeyReplaceStrConv(elem.Value) {
    				replaced = true
    			}
    		}
    	case ir.OARRAYLIT:
    		n := n.(*ir.CompLitExpr)
    		for _, elem := range n.List {
    			if elem.Op() == ir.OKEY {
    				elem = elem.(*ir.KeyExpr).Value
    			}
    			if mapKeyReplaceStrConv(elem) {
    				replaced = true
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/walk/expr.go

    	switch {
    	case n.Assigned:
    		mapFn = mapfn(mapassign[fast], t, false)
    	case t.Elem().Size() > abi.ZeroValSize:
    		args = append(args, reflectdata.ZeroAddr(t.Elem().Size()))
    		mapFn = mapfn("mapaccess1_fat", t, true)
    	default:
    		mapFn = mapfn(mapaccess1[fast], t, false)
    	}
    	call := mkcall1(mapFn, nil, init, args...)
    	call.SetType(types.NewPtr(t.Elem()))
    	call.MarkNonNil() // mapaccess1* and mapassign always return non-nil pointers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K 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