A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/buffer-reverse below:

buffer-reverse - npm

buffer-reverse

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

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