crypto-browserify/buffer-reverse

Name: buffer-reverse

Owner: crypto-browserify

Description: A lite module for byte reversal on buffers.

Created: 2015-09-25 07:24:10.0

Updated: 2017-07-22 01:07:17.0

Pushed: 2017-08-03 12:54:46.0

Homepage:

Size: 6

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

buffer-reverse

NPM Package Build Status

js-standard-style

A lite module for byte reverse on buffers.

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

ole.log(reverse(a))
> <Buffer 0f ff 00>

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

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

ole.log(reverseInplace(a))
> <Buffer 0f ff 00>

ee that a has been mutated
ole.log(a)
> <Buffer 0f ff 00>
License MIT

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.