No no I would like to get an array @data that would contain 21 items (as it is the count of C's in the template )
So that array would look like this:
lets say that $buffer contains these data:
f07601089978040001aaaaaa2017102195404724203718262a05051219540400
000199000001040678461666aaaaaaaaaaaaaa00023532200000011820050512
19540472403aaa (this is the hexdump of first 71 bytes read from that binary file)
And I want these data to be split to the @data array according to the template I use ->> so I want @data to be like this:
(f0, 76, 01, 08 AND SO ON ACCORDING TO THE TEMPLATE) - just unpack the particular data as unsigned chars..
But I probably get it wrong :)
I'm thinking about that $buffer as a buffer in the C language :(