- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for ptrType (0.37 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/link/internal/ld/dwarf.go
for _, typ := range []string{ "type:internal/abi.Type", "type:internal/abi.ArrayType", "type:internal/abi.ChanType", "type:internal/abi.FuncType", "type:internal/abi.MapType", "type:internal/abi.PtrType", "type:internal/abi.SliceType", "type:internal/abi.StructType", "type:internal/abi.InterfaceType", "type:internal/abi.ITab", "type:internal/abi.Imethod"} { d.defgotype(d.lookupOrDiag(typ))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
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) -
src/go/parser/parser.go
// the decision towards a type parameter list. if pname, ptype := extractName(x, p.tok == token.COMMA); pname != nil && (ptype != nil || p.tok != token.RBRACK) { // spec.Name "[" pname ... // spec.Name "[" pname ptype ... // spec.Name "[" pname ptype "," ... p.parseGenericType(spec, lbrack, pname, ptype) // ptype may be nil } else { // spec.Name "[" pname "]" ...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
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) -
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)