Konstantinos Agouros <[EMAIL PROTECTED]> writes:
>Hi,
>
>I am writing an xs that retrieves something in a char-array that is a binary-
>string. I want to store this in a hash and do a:
>         hv_store(result, "bitmap", 6, newSVpv(bitmap.bitmap, 0), 0);
                                                               
2nd arg to newSVpv is length in bytes.
If you pass as 0 then perl does strlen() to get the length,
but that is not appropriate for binary data - you have to pass 
length yourself.

>However a print Dumper($result) in perl gives me an empty string. Am I doing
>something wrong here?
>
>Konstantin
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/

Reply via email to