![]() |
il y a 2 ans | |
---|---|---|
.. | ||
dist | il y a 2 ans | |
externs | il y a 2 ans | |
scripts | il y a 2 ans | |
src | il y a 2 ans | |
tests | il y a 2 ans | |
.npmignore | il y a 2 ans | |
.travis.yml | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
bower.json | il y a 2 ans | |
bytebuffer.png | il y a 2 ans | |
donate.png | il y a 2 ans | |
index.js | il y a 2 ans | |
jsdoc.json | il y a 2 ans | |
package.json | il y a 2 ans |
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)