1 | Distributions
|
2 | =============
|
3 |
|
4 | ByteBuffer uses either ArrayBuffers in the browser or Buffers under node.js.
|
5 |
|
6 | ### Browsers: ArrayBuffers
|
7 |
|
8 | * **[ByteBufferAB.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.js)**
|
9 | uses an ArrayBuffer as its backing buffer, accessed through a DataView.
|
10 |
|
11 | * **[ByteBufferAB.min.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.js)**
|
12 | has been compiled with Closure Compiler using advanced optimizations.
|
13 |
|
14 | * **[ByteBufferAB.min.js.gz](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.js.gz)**
|
15 | has also been gzipped using `-9`.
|
16 |
|
17 | * **[ByteBufferAB.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.map)**
|
18 | is the source map generated by Closure Compiler.
|
19 |
|
20 | ### node.js: Buffers
|
21 |
|
22 | * **[ByteBufferNB.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferNB.js)**
|
23 | uses a node Buffer as its backing buffer.
|
24 |
|
25 | Also available as `bytebuffer` on [npm](https://www.npmjs.org/package/bytebuffer) and
|
26 | [bower](http://bower.io/search/?q=bytebuffer).
|
27 |
|
28 | When installed as an [npm package](https://www.npmjs.org/package/bytebuffer), both versions are available.
|
29 | `exports` and `exports.ByteBufferNB` point at ByteBufferNB, `exports.ByteBufferAB` points at ByteBufferAB.
|