[Israel.pm] pack & unpack and system architecture
aloha2004 at gmail.com
Sun Sep 4 08:34:13 PDT 2011
I've packed a C structure which looks similar to:
unsigned char _vMapping1; // on the system perl is running, it sums up
to 3 bytes.
unsigned char _vMapping2; // on the system perl is running, it sums
up to 3 bytes.
short _uPnP; // on the system perl is running, it sums up to 2 bytes.
I think there are some fill bytes, which there shouldn't be I believe, since
I am not getting what I'm expecting when using:
my $bin = unpack('ccs',...);
is there a module which will make my life easier to pack / unpack C
structures / binary data?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Perl