(base unsafe.Pointer, offset uintptr)
| 5 | ) |
| 6 | |
| 7 | func UnsafeAdd(base unsafe.Pointer, offset uintptr) unsafe.Pointer { |
| 8 | return unsafe.Pointer(uintptr(base) + offset) |
| 9 | } |
| 10 | |
| 11 | func UnsafeIndex(base unsafe.Pointer, offset uintptr, elemsz uintptr, n int) unsafe.Pointer { |
| 12 | return unsafe.Pointer(uintptr(base) + offset + uintptr(n)*elemsz) |
no outgoing calls
no test coverage detected