Skip to content
forked from google/or-tools

RecordReader and RecordWriter from or-tools

Notifications You must be signed in to change notification settings

moof2k/recordio

 
 

Repository files navigation

RecordReader and RecordWriter from or-tools

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!

Example

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();

Requirements

  • C++11
  • protobuf (-lprotobuf)
  • zlib (-lz)

License

Apache 2.0

or-tools is Copyright 2010-2014 Google

About

RecordReader and RecordWriter from or-tools

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.9%
  • Makefile 3.5%
  • Protocol Buffer 0.6%