in reply to C types and SV's and unpack
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C types and SV's
by blakew (Monk) on Jul 18, 2010 at 18:57 UTC | |
by Corion (Patriarch) on Jul 18, 2010 at 19:05 UTC | |
by blakew (Monk) on Jul 18, 2010 at 20:05 UTC | |
|
Re^2: C types and SV's
by DrHyde (Prior) on Jul 19, 2010 at 09:47 UTC | |
by Corion (Patriarch) on Jul 19, 2010 at 09:53 UTC | |
by DrHyde (Prior) on Jul 19, 2010 at 10:47 UTC | |
by blakew (Monk) on Jul 19, 2010 at 20:14 UTC | |
by DrHyde (Prior) on Jul 20, 2010 at 10:03 UTC |