sakrejda / protostan

Thin protobuf interface wrapper for Stan
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Adding binary stream-based protobuf writer #41

Closed sakrejda closed 8 years ago

sakrejda commented 8 years ago

At this point format is defined by tests and .proto files. The binary format is a Varint32 (protobuf) type which describes the length of the following message, followed by the message, followed by the next message length, etc... This pull request also adds utility functions to read/write this format, one message at a time while consuming the binary file/stream. Currently the only documentation on usage is in the tests.

sakrejda commented 8 years ago

Sigh, Travis doesn't like usage:

/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: 
#error This file requires compiler and library support 
for the upcoming ISO C++ standard, C++0x. This support
 is currently experimental, and must be enabled with the 
-std=c++0x or -std=gnu++0x compiler options.