[protobuf] Possible C++ serialization issue with repeated fields

2014-06-18 Thread Justin
My team and I noticed a potential bug in the serialization process, that seems unintended. If I defined a message structure as follows: message X { required Y y = 1; } message Y { repeated Things things = 1; repeated Stuff stuff = 2; } message Things { required string name = 1; }

[protobuf] Re: Possible C++ serialization issue with repeated fields

2014-06-18 Thread Justin
It's also worth noting that doing : x_original.IsInitialized() will return true, even though it cannot be deserialized. On Wednesday, June 18, 2014 12:26:10 PM UTC-4, Justin wrote: My team and I noticed a potential bug in the serialization process, that seems unintended. If I defined a

Re: [protobuf] Possible C++ serialization issue with repeated fields

2014-06-18 Thread Ilia Mirkin
On Wed, Jun 18, 2014 at 12:26 PM, Justin jscad...@gmail.com wrote: My team and I noticed a potential bug in the serialization process, that seems unintended. If I defined a message structure as follows: message X { required Y y = 1; } message Y { repeated Things things = 1;

Re: [protobuf] Possible C++ serialization issue with repeated fields

2014-06-18 Thread Justin
On Wednesday, June 18, 2014 12:36:27 PM UTC-4, Ilia Mirkin wrote: On Wed, Jun 18, 2014 at 12:26 PM, Justin jsca...@gmail.com javascript: wrote: My team and I noticed a potential bug in the serialization process, that seems unintended. If I defined a message structure as follows:

[protobuf] protobuf newbie questions

2014-06-18 Thread ajay . sonawane
Hi, I'm new to protobuf library. I have generated a .h and .cc file out of a sample .proto file by using protoc.exe on windows. I want to know 1. Can I use above generated files on MAC without any change? 2. Can I use the same files generated using 32 bit protoc.exe on windows for 64 build

Re: [protobuf] Possible C++ serialization issue with repeated fields

2014-06-18 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jun 18, 2014 at 10:10 AM, Justin jscad...@gmail.com wrote: On Wednesday, June 18, 2014 12:36:27 PM UTC-4, Ilia Mirkin wrote: On Wed, Jun 18, 2014 at 12:26 PM, Justin jsca...@gmail.com wrote: My team and I noticed a potential bug in the serialization process, that seems

Re: [protobuf] protobuf newbie questions

2014-06-18 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jun 18, 2014 at 1:04 AM, ajay.sonaw...@gmail.com wrote: Hi, I'm new to protobuf library. I have generated a .h and .cc file out of a sample .proto file by using protoc.exe on windows. I want to know 1. Can I use above generated files on MAC without any change? Yes. 2. Can I