Hello Julia Users,
I have been using Julia's `ccall` interface and was wondering how to handle
C structs containing fixed-length arrays:
typedef struct
{
uint8 x; // this is fine
uint8 y[2]; // this will cause issues
} MY_STRUCT;
My current conversion is:
type MY_STRUCT
x::Uint8 // this is fine
y::(Uint8,Uint8) // this will cause issues
end
I can create `read` and `write` functions but also have to overwrite
`sizeof` because the tuple appears to be stored as a pointer instead of
being stored `flat`.
Is there a better suggestion for how to store a fixed-length array?
Thanks!