Skip to content

billywhizz/node-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

binary packer and unpacker

Resources

License

Stars

Watchers

Forks

Packages

No packages published