(base unsafe.Pointer, offset uintptr, elemsz uintptr, n int)
| 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) |
| 13 | } |
| 14 | |
| 15 | func UnsafeByteSlice(base unsafe.Pointer, offset uintptr, i, j int) []byte { |
| 16 | // See: https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices |
no outgoing calls
no test coverage detected