nlf/protobuf.js — pull request #10 by nlf (2014-01-12 01:02:21+00:00)
Title: Refactor

This is a *major* refactor

Proto file parsing is no longer handled by this package. Instead schemas should be passed in as a merged json blob generated by [proto2json](https://github.com/Sannis/node-proto2json).

The loops and if statements were cleaned up to be easier to read/follow and be more maintainable.

Proper int64 support has been added via the [long](https://github.com/dcodeIO/Long.js) package.

The fixed32/sfixed32/float and fixed64/sfixed64/double types are now supported fully.

It should be stated, however, that 64 bit support has not been heavily tested and could use some additional attention. The state of this refactor is enough to support riakpbc correctly, though, so I'm submitting this as a pull request now for review purposes.