arraybuffer-concat
0.0.1 • Public • Published arraybuffer-concat
Concatenate ArrayBuffers
Install
npm install arraybuffer-concat
Usage
var arrayBufferConcat = require('arraybuffer-concat');
var a = new Uint8Array(1);
a[0] = 5;
var b = new Uint8Array(2);
b[0] = 2;
b[1] = 7;
var c = new Uint8Array(1);
c[0] = 9;
var arrayBuffer = arrayBufferConcat(a, b, c)
console.log(arrayBuffer.byteLength)
var uint8 = new Uint8Array(arrayBuffer)
console.log(uint8[0])
console.log(uint8[1])
console.log(uint8[2])
console.log(uint8[3])
Test
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.1
199
Version History
- VersionDownloads (Last 7 Days)
- 0.0.1
199
Package Sidebar
Install
Weekly Downloads