Ah Ha! that's the problem.
I had the internal assumption that unpack would just take as many bits as it needed and keep the rest for the next unpack. Your solution is also perfect.
Many Thanks,
R.
In reply to Re^2: binary pack/unpack oddness
by Random_Walk
in thread binary pack/unpack oddness
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |