![]() |
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
dist | %!s(int64=2) %!d(string=hai) anos | |
externs | %!s(int64=2) %!d(string=hai) anos | |
scripts | %!s(int64=2) %!d(string=hai) anos | |
src | %!s(int64=2) %!d(string=hai) anos | |
tests | %!s(int64=2) %!d(string=hai) anos | |
.npmignore | %!s(int64=2) %!d(string=hai) anos | |
.travis.yml | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
bower.json | %!s(int64=2) %!d(string=hai) anos | |
bytebuffer.png | %!s(int64=2) %!d(string=hai) anos | |
donate.png | %!s(int64=2) %!d(string=hai) anos | |
index.js | %!s(int64=2) %!d(string=hai) anos | |
jsdoc.json | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos |
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)