in reply to Re^7: dynamic extractor based off static references in file (perl)
in thread dynamic extractor based off static references in file (perl)
my $bytes = qq[\4\xC0]; my $ushortbe = unpack q[n], $bytes; printf qq[0x%04X 0b%b %d\n], ($ushortbe ) x 3; __END__ 0x04C0 0b10011000000 1216
but in all the code you've pasting you've been reading 3 bytes, a 16 bit integer takes 2 bytes ( 2x8) not 3 , so .... :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: dynamic extractor based off static references in file (perl)
by james289o9 (Acolyte) on Dec 09, 2013 at 19:49 UTC |