buffer-reverse
A lite module for reverse-operations on buffers
Last updated 9 years ago by dcousens .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install buffer-reverse 
SYNC missed versions from official npm registry.

buffer-reverse

NPM TRAVIS

js-standard-style

A lite module for byte reverse on buffers.

Examples

var reverse = require("buffer-reverse")
var a = new Buffer('00ff0f', 'hex')

console.log(reverse(a))
// => <Buffer 0f ff 00>

Or for those seeking those few extra cycles, perform the operation in place:

var reverseInplace = require("buffer-reverse/inplace")
var a = new Buffer('00ff0f', 'hex')

console.log(reverseInplace(a))
// => <Buffer 0f ff 00>

// See that a has been mutated
console.log(a)
// => <Buffer 0f ff 00>

License MIT

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

2 Versions

  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

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