vbyte_result points to an array of characters. You can't do anything with an array unless you know its size. How is Perl suppose to know how big the array is? For the same reason you need to know the length of the array to print it, you need to know the length of the array to create the Perl string the contains it. That's why you need to pass both the data and the length of the data to newSVpv.
In reply to Re^3: keeping binary data raw
by ikegami
in thread keeping binary data raw
by downer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |