arrayIndex returns a pointer to an element in the array. p must point to an array.
(index int, size uintptr)
| 57 | // arrayIndex returns a pointer to an element in the array. |
| 58 | // p must point to an array. |
| 59 | func (p unsafePointer) arrayIndex(index int, size uintptr) unsafePointer { |
| 60 | return unsafePointer{unsafe.Add(p.p, uintptr(index)*size)} |
| 61 | } |
| 62 | |
| 63 | // structField returns a pointer to a field in a struct. |
| 64 | // p must pointer to a struct. |