in reply to Re^3: Displaying bit-vectors with Most Significant Bits to the left?
in thread Displaying bit-vectors with Most Significant Bits to the left?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Displaying bit-vectors with Most Significant Bits to the left?
by LanX (Saint) on Jan 06, 2020 at 14:33 UTC | |
by ikegami (Patriarch) on Jan 07, 2020 at 18:47 UTC |