KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to read / write multiple Protocol Buffers messages from files, in both C++ and Java. Google suggests writing length prefixes before the messages, but there's no way to do that by default (that I could see). However, the Java API in version 2.1.0 received a set of "Delimited" I/O functions which apparently do that job: parseDelimitedFrom mergeDelimitedFrom writeDelimitedTo Are there C++ equivalents? And if not, what's the wire format for the size prefixes the Java API attaches, so I can parse those messages in C++? Update: These now exist in google/protobuf/util/delimited_message_util.h as of v3.3.0.
Tags (comma-separated)
Save Edits
Cancel