A lite module for byte reverse on buffers.
Examplesvar 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:
License MITvar 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>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4