nlf / protobuf.js

A super rough, super simple, protocol buffer encoding library
24 stars 7 forks source link

Varint fixes #15

Closed nlf closed 10 years ago

nlf commented 10 years ago

This supercedes #13

Included are tests for the limits of all numerical data types, and fixes to make sure they're all handled correctly.

New behavior:

The int32 and int64 data types are now handled as signed values, though are not zigzag encoded. This seems to be in line with other library specifications and allows us to handle all edge cases with clearly defined limits on the data types.