in reply to Re^2: keeping binary data raw
in thread keeping binary data raw
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: keeping binary data raw
by downer (Monk) on Oct 26, 2007 at 16:53 UTC | |
by ikegami (Patriarch) on Oct 26, 2007 at 16:57 UTC |