LookAtMySuitBot/js/node_modules/endian-toggle
Brett 5f2b208d42 c++ setup 2023-12-24 20:08:39 -05:00
..
example c++ setup 2023-12-24 20:08:39 -05:00
test c++ setup 2023-12-24 20:08:39 -05:00
.travis.yml c++ setup 2023-12-24 20:08:39 -05:00
LICENSE c++ setup 2023-12-24 20:08:39 -05:00
index.js c++ setup 2023-12-24 20:08:39 -05:00
package.json c++ setup 2023-12-24 20:08:39 -05:00
readme.markdown c++ setup 2023-12-24 20:08:39 -05:00

readme.markdown

endian-toggle

Toggle the byte ordering of a buffer.

build status

example

var toggle = require('endian-toggle');
var buf = new Buffer('abcd');

console.dir(buf);
console.dir(toggle(buf, 16));

<Buffer 61 62 63 64>
<Buffer 62 61 64 63>

methods

var toggle = require('endian-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