<div dir="ltr">Hi,<div><br></div><div>I've packed a C structure which looks similar to:</div><div><br></div><div>struct {</div><div> unsigned char _vMapping1[3]; // on the system perl is running, it sums up to 3 bytes.</div>
<div> unsigned char _vMapping2[3]; // on the system perl is running, it sums up to 3 bytes.</div><div> short _uPnP; // on the system perl is running, it sums up to 2 bytes.</div><div>}</div><div><br></div><div>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:</div>
<div><br></div><div>my $bin = unpack('c[3]c[3]s',...);</div><div><br></div><div>is there a module which will make my life easier to pack / unpack C structures / binary data?</div><div><br></div><div>thanks,</div><div>
<br></div><div><br></div></div>