Storing a set of serialized protobuf objects
<p>I'm using <code>SerializeToString</code> on my Protobuf objects, and then store the string in a DB.</p>

<p>However, sometimes I have an array of such objects. I would like to store the whole serialized array, and for that I need some separator string between the serialized strings.</p>

<p>According to the <a href="https://developers.google.com/protocol-buffers/docs/cpptutorial" rel="nofollow">documentation</a> I've seen, the string is just a byte array, and so I got nothing promised to me regarding its content.</p>

<p>What would be the best approach here?</p>

<p>I don't know the length of the array because objects may be appended to it as we go, and I want it stored in DB throughout the entire process.</p>