Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <recordio.h>
Public Member Functions | |
RecordWriter (File *const file) | |
template<class P > | |
bool | WriteProtocolMessage (const P &proto) |
bool | Close () |
Closes the underlying file. | |
void | set_use_compression (bool use_compression) |
Static Public Attributes | |
static const int | kMagicNumber = 0x3ed7230a |
Magic number when reading and writing protocol buffers. | |
This class appends a protocol buffer to a file in a binary format. The data written in the file follows the following format (sequentially):
Definition at line 33 of file recordio.h.
|
explicit |
Definition at line 26 of file recordio.cc.
bool recordio::RecordWriter::Close | ( | ) |
Closes the underlying file.
Definition at line 29 of file recordio.cc.
void recordio::RecordWriter::set_use_compression | ( | bool | use_compression | ) |
Definition at line 31 of file recordio.cc.
|
inline |
Definition at line 41 of file recordio.h.
|
static |
Magic number when reading and writing protocol buffers.
Definition at line 36 of file recordio.h.