On Tue, Aug 16, 2016 at 10:29 PM Kiran Pamnany

> If I use a composite type, Bar, instead of a bits type, then I get back an
> array of Bar, but each element is #undef. The memory for the elements of
> the array is present (sizeof(Bar) was used to allocate the space), but the
> array isn't set up correctly. How can I do this?
>
>
>
It looks like ptr is actually an array of pointers? If so, you could access
the first element using:
unsafe_load(convert(Ptr{atyp}, p[1]))

Cheers,

Bart

Reply via email to