Re: [protobuf] Protobuf 2.6 serialization weird behavior

2018-04-09 Thread Marc Gravell
First thought: what language / platform is this? the C++ generated code is very different to the Java generated code, for example Second thought: 2.6 is pretty old; it is very possible that a bug existed and has been fixed since then (Aug 2014) - does it still happen with more recent releases?

[protobuf] Protobuf 2.6 serialization weird behavior

2018-04-09 Thread Tony Tony
Hi, I have a strange case I'm dealing with. Using protobuf compiler 2.6. Every time I send a certain set of values over my socket, it ends up with missing data. Although I've compared the string received after serialization on the server and on receiving the string on the client and they are

[protobuf] return to arena (C++)

2018-04-09 Thread John Scholvin
Can someone confirm for me that there's no way to return a message's memory to the arena when you're done with it? I was expecting the arena to work something like boost::pool where I can give memory back when I'm done with it, but it appears that's not part of the API here. My use case is a