PHP 7.4.33
Preview: README.md Size: 940 B
/var/www/coop-podio-sms.bitkit.dk/httpdocs/node_modules/to-arraybuffer/README.md
# to-arraybuffer [![Build Status](https://travis-ci.org/jhiesey/to-arraybuffer.svg?branch=master)](https://travis-ci.org/jhiesey/to-arraybuffer)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/to-arraybuffer.svg)](https://saucelabs.com/u/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](https://www.npmjs.com/package/buffer).

## Usage

``` js
var toArrayBuffer = require('to-arraybuffer')

var buffer = new Buffer(100)
// Fill the buffer with some data

var ab = toArrayBuffer(buffer)
// `ab` now contains the same data as `buffer`
```

## License

MIT

Directory Contents

Dirs: 0 × Files: 8
Name Size Perms Modified Actions
45 B lrw-r--r-- 2016-01-13 02:55:51
Edit Download
36 B lrw-r--r-- 2016-01-13 02:55:30
Edit Download
303 B lrw-r--r-- 2016-01-13 03:29:02
Edit Download
881 B lrw-r--r-- 2016-01-13 03:28:45
Edit Download
1.06 KB lrw-r--r-- 2016-01-13 01:40:16
Edit Download
1.78 KB lrw-r--r-- 2024-05-28 16:34:57
Edit Download
940 B lrw-r--r-- 2016-01-13 04:01:05
Edit Download
1.29 KB lrw-r--r-- 2016-01-13 03:07:42
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).