A RetroSearch Logo

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

Search Query:

Showing content from https://www.npmjs.com/package/to-arraybuffer below:

to-arraybuffer - npm

to-arraybuffer1.0.1 • Public • Published 10 years ago

to-arraybuffer

Convert from a Buffer to an ArrayBuffer as fast as possible.

Note that in some cases the returned ArrayBuffer is backed by the same memory as the original Buffer (but in other cases it is a copy), so modifying the ArrayBuffer is not recommended.

This module is designed to work both in node.js and in all browsers with ArrayBuffer support when using the Buffer implementation provided by Browserify.

Usage

var toArrayBuffer = require('to-arraybuffer')

 

var buffer = new Buffer(100)

 

var ab = toArrayBuffer(buffer)

License

MIT

Package Sidebar Install Downloads Weekly Downloads Last publish

10 years ago

Collaborators

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