From: Mischa Poslawsky Date: Tue, 3 Mar 2009 17:59:16 +0000 (+0100) Subject: Parse::Binary::Nested: track parsed bytes X-Git-Url: http://git.shiar.nl/wormy.git/commitdiff_plain/ce0df5c87882d5275a22ab3bb3f5642c577927b6?hp=ce0df5c87882d5275a22ab3bb3f5642c577927b6 Parse::Binary::Nested: track parsed bytes Reparse template values ourself, in order to: - Put multiple data in a single value (for example 'CC' will return an array with the two bytes, instead of screwing up all following elements); - Know the amount of bytes read, allowing the current position to be returned by the special '=.' declaration. Also, the special case 'Ca$NUM' is now to be given as 'C/a$NUM'. This solution should be much better (logically combines C/a and a$NUM) and unambiguous (this syntax is invalid with CORE::unpack, so no unexpected results). ---