Lines Matching refs:p

71 	p unsafe.Pointer  member
83 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
88 func toAddrPointer(i *interface{}, isptr, deref bool) (p pointer) {
93 p = pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)}
97 p = pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
100 p.p = *(*unsafe.Pointer)(p.p)
102 return p
107 return pointer{p: unsafe.Pointer(v.Pointer())}
112 func (p pointer) offset(f field) pointer {
120 return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))}
123 func (p pointer) isNil() bool {
124 return p.p == nil
127 func (p pointer) toInt64() *int64 {
128 return (*int64)(p.p)
130 func (p pointer) toInt64Ptr() **int64 {
131 return (**int64)(p.p)
133 func (p pointer) toInt64Slice() *[]int64 {
134 return (*[]int64)(p.p)
136 func (p pointer) toInt32() *int32 {
137 return (*int32)(p.p)
149 func (p pointer) getInt32Ptr() *int32 {
150 return *(**int32)(p.p)
152 func (p pointer) setInt32Ptr(v int32) {
153 *(**int32)(p.p) = &v
159 func (p pointer) getInt32Slice() []int32 {
160 return *(*[]int32)(p.p)
166 func (p pointer) setInt32Slice(v []int32) {
167 *(*[]int32)(p.p) = v
171 func (p pointer) appendInt32Slice(v int32) {
172 s := (*[]int32)(p.p)
176 func (p pointer) toUint64() *uint64 {
177 return (*uint64)(p.p)
179 func (p pointer) toUint64Ptr() **uint64 {
180 return (**uint64)(p.p)
182 func (p pointer) toUint64Slice() *[]uint64 {
183 return (*[]uint64)(p.p)
185 func (p pointer) toUint32() *uint32 {
186 return (*uint32)(p.p)
188 func (p pointer) toUint32Ptr() **uint32 {
189 return (**uint32)(p.p)
191 func (p pointer) toUint32Slice() *[]uint32 {
192 return (*[]uint32)(p.p)
194 func (p pointer) toBool() *bool {
195 return (*bool)(p.p)
197 func (p pointer) toBoolPtr() **bool {
198 return (**bool)(p.p)
200 func (p pointer) toBoolSlice() *[]bool {
201 return (*[]bool)(p.p)
203 func (p pointer) toFloat64() *float64 {
204 return (*float64)(p.p)
206 func (p pointer) toFloat64Ptr() **float64 {
207 return (**float64)(p.p)
209 func (p pointer) toFloat64Slice() *[]float64 {
210 return (*[]float64)(p.p)
212 func (p pointer) toFloat32() *float32 {
213 return (*float32)(p.p)
215 func (p pointer) toFloat32Ptr() **float32 {
216 return (**float32)(p.p)
218 func (p pointer) toFloat32Slice() *[]float32 {
219 return (*[]float32)(p.p)
221 func (p pointer) toString() *string {
222 return (*string)(p.p)
224 func (p pointer) toStringPtr() **string {
225 return (**string)(p.p)
227 func (p pointer) toStringSlice() *[]string {
228 return (*[]string)(p.p)
230 func (p pointer) toBytes() *[]byte {
231 return (*[]byte)(p.p)
233 func (p pointer) toBytesSlice() *[][]byte {
234 return (*[][]byte)(p.p)
236 func (p pointer) toExtensions() *XXX_InternalExtensions {
237 return (*XXX_InternalExtensions)(p.p)
239 func (p pointer) toOldExtensions() *map[int32]Extension {
240 return (*map[int32]Extension)(p.p)
246 func (p pointer) getPointerSlice() []pointer {
249 return *(*[]pointer)(p.p)
255 func (p pointer) setPointerSlice(v []pointer) {
258 *(*[]pointer)(p.p) = v
262 func (p pointer) getPointer() pointer {
263 return pointer{p: *(*unsafe.Pointer)(p.p)}
267 func (p pointer) setPointer(q pointer) {
268 *(*unsafe.Pointer)(p.p) = q.p
272 func (p pointer) appendPointer(q pointer) {
273 s := (*[]unsafe.Pointer)(p.p)
274 *s = append(*s, q.p)
279 func (p pointer) getInterfacePointer() pointer {
281 return pointer{p: (*(*[2]unsafe.Pointer)(p.p))[1]}
286 func (p pointer) asPointerTo(t reflect.Type) reflect.Value {
287 return reflect.NewAt(t, p.p)
290 func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo {
291 return (*unmarshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
293 func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) {
294 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
296 func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo {
297 return (*marshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
299 func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) {
300 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
302 func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo {
303 return (*mergeInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
305 func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) {
306 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
308 func atomicLoadDiscardInfo(p **discardInfo) *discardInfo {
309 return (*discardInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
311 func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) {
312 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))