Returns a pointer to the i-th struct in a contiguous array of structs. The returned pointer shares memory with the original array.
Examples
if (FALSE) { # \dontrun{
Point <- ffi_struct(x = ffi_int(), y = ffi_int())
points <- ffi_alloc(Point, 10L) # array of 10 Points
p3 <- ffi_get_element(points, 3L, Point)
ffi_set_field(p3, "x", 100L, Point)
} # }