title: Are there C++ equivalents for the Protocol Buffers delimited I/O functions in Java?
body: <p>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).</p>
  <p>However, the Java API in version 2.1.0 received a set of &quot;Delimited&quot; I/O functions which apparently do that job:</p>
  <pre><code>parseDelimitedFrom
  mergeDelimitedFrom
  writeDelimitedTo
  </code></pre>
  <p>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++?</p>
  <hr />
  <h3>Update:</h3>
  <p>These now exist in <a href="https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/util/delimited_message_util.h" rel="noreferrer"><code>google/protobuf/util/delimited_message_util.h</code></a> as of v3.3.0.</p>