Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 219 for elem1 (0.06 sec)

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

    			check.errorf(x, InvalidCopy, invalidArg+"copy expects slice arguments; found %s and %s", x, y)
    			return
    		}
    
    		if !Identical(dst.elem, src.elem) {
    			check.errorf(x, InvalidCopy, invalidArg+"arguments to copy %s and %s have different element types %s and %s", x, y, dst.elem, src.elem)
    			return
    		}
    
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(Typ[Int], x.typ, y.typ))
    		}
    		x.mode = value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K 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/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)
  4. 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)
  5. src/cmd/compile/internal/syntax/printer.go

    	case *ArrayType:
    		var len interface{} = _DotDotDot
    		if n.Len != nil {
    			len = n.Len
    		}
    		p.print(_Lbrack, len, _Rbrack, n.Elem)
    
    	case *SliceType:
    		p.print(_Lbrack, _Rbrack, n.Elem)
    
    	case *DotsType:
    		p.print(_DotDotDot, n.Elem)
    
    	case *StructType:
    		p.print(_Struct)
    		if len(n.FieldList) > 0 && p.linebreaks {
    			p.print(blank)
    		}
    		p.print(_Lbrace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/vendor/golang.org/x/crypto/cryptobyte/asn1.go

    		var i int64
    		if !s.readASN1Int64(&i) || reflect.ValueOf(out).Elem().OverflowInt(i) {
    			return false
    		}
    		reflect.ValueOf(out).Elem().SetInt(i)
    		return true
    	case *uint, *uint8, *uint16, *uint32, *uint64:
    		var u uint64
    		if !s.readASN1Uint64(&u) || reflect.ValueOf(out).Elem().OverflowUint(u) {
    			return false
    		}
    		reflect.ValueOf(out).Elem().SetUint(u)
    		return true
    	case *big.Int:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top