A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js,
generated from a single source tree through MetaScript.
Relative and absolute zero-copy operations wherever possible
Transparent resizing when using unknown-length data
Chaining of all operations that do not return a specific value
Usage
The library is compatible with CommonJS and AMD loaders and is exposed globally as dcodeIO.ByteBuffer if neither is
available.
var ByteBuffer = require("bytebuffer");var bb = new ByteBuffer() .writeIString("Hello world!") .flip();console.log(bb.readIString()+" from bytebuffer.js");
In the browser, 64 bit integer support is optional and present only if Long.js has
been loaded prior to bytebuffer.js.