![]() |
2 years ago | |
---|---|---|
.. | ||
dist | 2 years ago | |
externs | 2 years ago | |
scripts | 2 years ago | |
src | 2 years ago | |
tests | 2 years ago | |
.npmignore | 2 years ago | |
.travis.yml | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
bower.json | 2 years ago | |
bytebuffer.png | 2 years ago | |
donate.png | 2 years ago | |
index.js | 2 years ago | |
jsdoc.json | 2 years ago | |
package.json | 2 years ago |
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.
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.
Dretch (IE8 compatibility)
License: Apache License, Version 2.0 - Logo derived from W3C HTML5 Logos (CC A 3.0)