This repository contains standalone versions of the RecordReader and RecordWriter classes from the Google Optimization Tools library (or-tools). These classes together provide interfaces for quickly reading and writing compressed Protobuf steams to disk.
If you're looking to stream protobufs to a file (in C++), this is what you want!
File* file = File::Open("test.log", "w");
RecordWriter writer(file);
MyProtoMessage msg;
msg.set_id(42);
msg.set_name("frog");
writer.WriteProtocolMessage(msg);
writer.Close();
- C++11
- protobuf (-lprotobuf)
- zlib (-lz)
Apache 2.0
or-tools is Copyright 2010-2014 Google