endian-toggle
Toggle the byte ordering of a buffer.
example
var toggle = ;var buf = 'abcd';consoledirbuf;consoledir;
<Buffer 61 62 63 64>
<Buffer 62 61 64 63>
methods
var toggle =
toggle(buf, bits)
Return a new buffer from buf
with toggled endianness at bits
many bits.
install
With npm do:
npm install endian-toggle
license
MIT