I need to create a Julia type corresponding to a C structure that has a fixed size array:
struct cstruct {
...
int arr[N]
...
};
I defined Julia types corresponding to other C-structures with such arrays:
type jstruct
...
arr::Ptr{Cint}
...
end
But, as I understand it, this only works when it arris a pointer, not an array of a certain size. How can I guarantee that the offsets of the elements following follow arrremain unchanged in both languages?
source
share