Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ptrType (0.14 sec)

  1. src/reflect/type.go

    	if pi, ok := ptrMap.Load(t); ok {
    		return &pi.(*ptrType).Type
    	}
    
    	// Look in known types.
    	s := "*" + t.String()
    	for _, tt := range typesByString(s) {
    		p := (*ptrType)(unsafe.Pointer(tt))
    		if p.Elem != &t.t {
    			continue
    		}
    		pi, _ := ptrMap.LoadOrStore(t, p)
    		return &pi.(*ptrType).Type
    	}
    
    	// Create a new ptrType starting with the description
    	// of an *unsafe.Pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    		// constants to the parameter type, to avoid a type mismatch.
    		ptype := p.rewriteUnsafe(param.Go)
    
    		if !p.needsPointerCheck(f, param.Go, args[i]) || param.BadPointer || p.checkUnsafeStringData(args[i]) {
    			if ptype != param.Go {
    				needsUnsafe = true
    			}
    			fmt.Fprintf(&sb, "var _cgo%d %s = %s; ", i,
    				gofmt(ptype), gofmtPos(arg, origArg.Pos()))
    			continue
    		}
    
    		// Check for &a[i].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. src/runtime/mbitmap.go

    	t := e._type
    
    	var et *_type
    	if t.Kind_&abi.KindMask != abi.Pointer {
    		throw("bad argument to getgcmask: expected type to be a pointer to the value type whose mask is being queried")
    	}
    	et = (*ptrtype)(unsafe.Pointer(t)).Elem
    
    	// data or bss
    	for _, datap := range activeModules() {
    		// data
    		if datap.data <= uintptr(p) && uintptr(p) < datap.edata {
    			bitmap := datap.gcdatamask.bytedata
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  4. src/runtime/mheap.go

    	nret    uintptr
    	fint    *_type   // May be a heap pointer, but always live.
    	ot      *ptrtype // May be a heap pointer, but always live.
    }
    
    // Adds a finalizer to the object p. Returns true if it succeeded.
    func addfinalizer(p unsafe.Pointer, f *funcval, nret uintptr, fint *_type, ot *ptrtype) bool {
    	lock(&mheap_.speciallock)
    	s := (*specialfinalizer)(mheap_.specialfinalizeralloc.alloc())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    			// the decision towards a type parameter list.
    			if pname, ptype := extractName(x, p.tok == _Comma); pname != nil && (ptype != nil || p.tok != _Rbrack) {
    				// d.Name "[" pname ...
    				// d.Name "[" pname ptype ...
    				// d.Name "[" pname ptype "," ...
    				d.TParamList = p.paramList(pname, ptype, _Rbrack, true) // ptype may be nil
    				d.Alias = p.gotAssign()
    				d.Type = p.typeOrNil()
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			expectedSetCost:  22,
    		},
    		{
    			name: "extended library lowerAscii",
    			schemaGenerator: func(max *int64) *schema.Structural {
    				strType := withMaxLength(primitiveType("string", ""), max)
    				strType = withRule(strType, "self.lowerAscii() == 'lower!'")
    				return &strType
    			},
    			expectedCalcCost: 314575,
    			setMaxElements:   10,
    			expectedSetCost:  6,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    				// type with TypeArgs results in an identical instance.
    				ptype := useMap[inst.Ident].Type()
    				lister, _ := ptype.(interface{ TypeParams() *TypeParamList })
    				if lister == nil || lister.TypeParams().Len() == 0 {
    					t.Fatalf("info.Types[%v] = %v, want parameterized type", inst.Ident, ptype)
    				}
    				inst2, err := Instantiate(nil, ptype, targs, true)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_test.go

    				// type with TypeArgs results in an identical instance.
    				ptype := useMap[inst.Name].Type()
    				lister, _ := ptype.(interface{ TypeParams() *TypeParamList })
    				if lister == nil || lister.TypeParams().Len() == 0 {
    					t.Fatalf("info.Types[%v] = %v, want parameterized type", inst.Name, ptype)
    				}
    				inst2, err := Instantiate(nil, ptype, targs, true)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    			break
    		}
    		if st.str[0] == 'Q' {
    			// This is a requires clause.
    			break
    		}
    		ptype := st.demangleType(false)
    
    		if len(ret) == 0 && explicitObjectParameter {
    			ptype = &ExplicitObjectParameter{Base: ptype}
    		}
    
    		ret = append(ret, ptype)
    	}
    
    	// There should always be at least one type.  A function that
    	// takes no arguments will have a single parameter type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
Back to top