But vec's approach might provide reproducible results on different architectures.
Each of the snippets I posted produces the same output on both little-endian and big-endian machines.
With pack, you say what you want, and you get it. It's far cleaner than being told what you're going to get —sometimes LE, sometimes BE, based on the size of the third arg— and having to work around that.
In reply to Re^4: Displaying bit-vectors with Most Significant Bits to the left?
by ikegami
in thread Displaying bit-vectors with Most Significant Bits to the left?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |