structField returns a pointer to a field in a struct. p must pointer to a struct.
(index int, offset, size uintptr)
| 63 | // structField returns a pointer to a field in a struct. |
| 64 | // p must pointer to a struct. |
| 65 | func (p unsafePointer) structField(index int, offset, size uintptr) unsafePointer { |
| 66 | return unsafePointer{unsafe.Add(p.p, offset)} |
| 67 | } |
| 68 | |
| 69 | // asString casts p as a *string. |
| 70 | func (p unsafePointer) asString() *string { |