Hello,

On Sunday, August 21, 2016 at 1:16:22 PM UTC+2, Milan Bouchet-Valat wrote:
>
> Le dimanche 21 août 2016 à 01:36 -0700, Andreas Lobinger a écrit : 
> > Hello colleagues, 
> > 
> > i'm trying to use unsafe_wrap from a pointer from an external call 
> > (cfunction) to an array access. 
> > Looks like i have type problems: 
>
> The problem is with the first argument: it should be a type, not an 
> array. You should simply pass 'Array' instead of 'b1': no need to 
> allocate a buffer, as this function uses the original memory referred 
> to by the pointer (without making a copy). 
>

i pass Array{UInt8,1} and this works.

Thank you and wishing a happy sunday,
       Andreas 

Reply via email to