Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 89 for isptrto (0.18 sec)

  1. src/cmd/compile/internal/ssa/expand_calls.go

    	ft := from.Type
    	if offset == 0 {
    		if ft == pt {
    			return from
    		}
    		// This captures common, (apparently) safe cases.  The unsafe cases involve ft == uintptr
    		if (ft.IsPtr() || ft.IsUnsafePtr()) && pt.IsPtr() {
    			return from
    		}
    	}
    	// Simplify, canonicalize
    	for from.Op == OpOffPtr {
    		offset += from.AuxInt
    		from = from.Args[0]
    	}
    	if from == x.sp {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/struct.go

    			// (via under(t)) a possibly incomplete type.
    			embeddedTyp := typ // for closure below
    			embeddedPos := pos
    			check.later(func() {
    				t, isPtr := deref(embeddedTyp)
    				switch u := under(t).(type) {
    				case *Basic:
    					if !isValid(t) {
    						// error was reported before
    						return
    					}
    					// unsafe.Pointer is treated like a regular pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. operator/pkg/util/reflect.go

    	}
    	return reflect.TypeOf(value).Kind()
    }
    
    // IsString reports whether value is a string type.
    func IsString(value any) bool {
    	return kindOf(value) == reflect.String
    }
    
    // IsPtr reports whether value is a ptr type.
    func IsPtr(value any) bool {
    	return kindOf(value) == reflect.Ptr
    }
    
    // IsMap reports whether value is a map type.
    func IsMap(value any) bool {
    	return kindOf(value) == reflect.Map
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

        (Load <t.FieldType(0)> (OffPtr <t.FieldType(0).PtrTo()> [0]             ptr) mem)
        (Load <t.FieldType(1)> (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] ptr) mem)
        (Load <t.FieldType(2)> (OffPtr <t.FieldType(2).PtrTo()> [t.FieldOff(2)] ptr) mem))
    (Load <t> ptr mem) && t.IsStruct() && t.NumFields() == 4 && CanSSA(t) =>
      (StructMake4
        (Load <t.FieldType(0)> (OffPtr <t.FieldType(0).PtrTo()> [0]             ptr) mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	}
    
    	if namespaceIsSet {
    		paramRef.Namespace = matchingNamespace
    	}
    
    	if denyNotFound {
    		paramRef.ParameterNotFoundAction = ptrTo(admissionregistrationv1.DenyAction)
    	} else {
    		paramRef.ParameterNotFoundAction = ptrTo(admissionregistrationv1.AllowAction)
    	}
    
    	compiler := &fakeCompiler{}
    	matcher := &fakeMatcher{
    		DefaultMatch: true,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/expr.go

    // index'th field of the given expression, which must be of struct or
    // pointer-to-struct type.
    func DotField(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr {
    	op, typ := ir.ODOT, x.Type()
    	if typ.IsPtr() {
    		op, typ = ir.ODOTPTR, typ.Elem()
    	}
    	if !typ.IsStruct() {
    		base.FatalfAt(pos, "DotField of non-struct: %L", x)
    	}
    
    	// TODO(mdempsky): This is the backend's responsibility.
    	types.CalcSize(typ)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/query-params.md

        {!> ../../../docs_src/query_params/tutorial002.py!}
        ```
    
    Nesse caso, o parâmetro da função `q` será opcional, e `None` será o padrão.
    
    !!! check "Verificar"
        Você também pode notar que o **FastAPI** é esperto o suficiente para perceber que o parâmetro da rota `item_id` é um parâmetro da rota, e `q` não é, portanto, `q` é o parâmetro de consulta.
    
    
    ## Conversão dos tipos de parâmetros de consulta
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/reflect/badlinkname.go

    func badlinkname_rtype_Size(*rtype) uintptr
    
    //go:linkname badlinkname_rtype_String reflect.(*rtype).String
    func badlinkname_rtype_String(*rtype) string
    
    //go:linkname badlinkname_rtype_ptrTo reflect.(*rtype).ptrTo
    func badlinkname_rtype_ptrTo(*rtype) *abi.Type
    
    //go:linkname badlinkname_Value_pointer reflect.(*Value).pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. schema/utils.go

    func GetRelationsValues(ctx context.Context, reflectValue reflect.Value, rels []*Relationship) (reflectResults reflect.Value) {
    	for _, rel := range rels {
    		reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1)
    
    		appendToResults := func(value reflect.Value) {
    			if _, isZero := rel.Field.ValueOf(ctx, value); !isZero {
    				result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/type.go

    }
    
    func (t *Type) IsComplex() bool {
    	return t.kind == TCOMPLEX64 || t.kind == TCOMPLEX128 || t == UntypedComplex
    }
    
    // IsPtr reports whether t is a regular Go pointer type.
    // This does not include unsafe.Pointer.
    func (t *Type) IsPtr() bool {
    	return t.kind == TPTR
    }
    
    // IsPtrElem reports whether t is the element of a pointer (to t).
    func (t *Type) IsPtrElem() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top