8000 GitHub - samliu/recordio: RecordReader and RecordWriter from or-tools
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

samliu/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++ 96.5%
  • Makefile 3.5%
0