Personally, I would keep just the "dumb memory" in C and use pack/unpack to fetch the data from it using Perl. But that may well be because I feel more confident with Perl than I feel with C. Also potentially see Tie::Array::PackedC for inspiration how to make your buffer appear as an array of integers from the outside.
In reply to Re: C types and SV's
by Corion
in thread C types and SV's and unpack
by blakew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |