binary packer and unpacker
JavaScript C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
test
.gitignore
LICENSE
README
wscript

README

node-binary
=============

A binary packer and unpacker

To build:

node-waf configure
node-waf build

To use in a script:

var binary = require("./lib/binary");

var bin = new binary.Binary();

var buff = new Buffer(1024);

bin.pack([
	{"int": 1},
	{"int16": 2},
	{"int32": 3},
	{"string": "goodbye"}
], buff, 0);

var tmp = bin.unpack("onNs7", 0, buff);

run tests/test.js for a full example.