Re: [protobuf] Deserializing How to?

2013-05-13 Thread Marc Gravell
"..." is the standard form of protobuf "repeated" data. A header value of 10 is the standard form for a length-prefixed field with key 1. If you want to read all the objects together, then write a wrapper message, i.e. message animals { repeated animal items = 1; } and treat it as a single "a

[protobuf] Deserializing How to?

2013-05-13 Thread vic . lix10
I have c# code which serialize an objects (using protobuf-net) and I am able to deserialize it in c++ using protocol buffer. The serialize data is the form as . I extract it using code below OOGLE_PROTOBUF_VERIFY_VERSION; string fpath = "animal.bin"; fstream input(fpath, ios::in | ios::binar