endian-toggle
toggle the byte ordering of a buffer
Last updated 14 years ago by substack .
MIT · Repository · Original npm · Tarball · package.json
$ npm install endian-toggle 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.0                                ...           latest (14 years ago)

1 Versions

  • 0.0.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 7
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE