Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for PtrType (0.1 sec)

  1. src/runtime/export_test.go

    }
    
    func (a *UserArena) New(out *any) {
    	i := efaceOf(out)
    	typ := i._type
    	if typ.Kind_&abi.KindMask != abi.Pointer {
    		panic("new result of non-ptr type")
    	}
    	typ = (*ptrtype)(unsafe.Pointer(typ)).Elem
    	i.data = a.arena.new(typ)
    }
    
    func (a *UserArena) Slice(sl any, cap int) {
    	a.arena.slice(sl, cap)
    }
    
    func (a *UserArena) Free() {
    	a.arena.free()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/parser.go

    //		      SliceType | MapType | Channel_Type .
    func (p *parser) typeOrNil() Expr {
    	if trace {
    		defer p.trace("typeOrNil")()
    	}
    
    	pos := p.pos()
    	switch p.tok {
    	case _Star:
    		// ptrtype
    		p.next()
    		return newIndirect(pos, p.type_())
    
    	case _Arrow:
    		// recvchantype
    		p.next()
    		p.want(_Chan)
    		t := new(ChanType)
    		t.pos = pos
    		t.Dir = RecvOnly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  3. src/reflect/value.go

    				}
    			}
    			ptr = *(*unsafe.Pointer)(ptr)
    		}
    		// The returned value's address is v's value.
    		if ptr == nil {
    			return Value{}
    		}
    		tt := (*ptrType)(unsafe.Pointer(v.typ()))
    		typ := tt.Elem
    		fl := v.flag&flagRO | flagIndir | flagAddr
    		fl |= flag(typ.Kind())
    		return Value{typ, ptr, fl}
    	}
    	panic(&ValueError{"reflect.Value.Elem", v.kind()})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. 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)
Back to top