[protobuf] Limited memory for parsing ProtoBuf

2017-08-01 Thread Ben Schroeder
Hi All, I am running on an embedded system with limited resources (around 32mb ram available) I have a protocol buffer that I serialized into a file: protocolbuffer.data (The protobuf message is size is 25mb) I am using the python protobuf implementation. I can successfully f.open() and f.read(

Re: [protobuf] Re: Protobuf on ARM pads integers

2017-08-01 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Aug 1, 2017 at 4:13 AM, Brian Savage wrote: > This problem has reared it's ugly head again. This time, some enums were > changed and it caused a crash in an unrelated message when serialized. > Padding the message with a bool type at the end of the message fixed it. > > It is scary that

[protobuf] How will JSON <-> protobuf utility function handle non-existent enum value?

2017-08-01 Thread Qian Zhang
Hi, I see the file json_util.h has a utility function ("JsonStringToMessage()") which can be used to convert a JSON string to a protobuf message, and I'd like to know if the JSON string contains an non-exist

[protobuf] Re: Protobuf on ARM pads integers

2017-08-01 Thread Brian Savage
This problem has reared it's ugly head again. This time, some enums were changed and it caused a crash in an unrelated message when serialized. Padding the message with a bool type at the end of the message fixed it. It is scary that touching an unrelated part of the .proto file can cause a

[protobuf] Re: Python ParseFromString always returns None

2017-08-01 Thread chitin1027
Web can`t load , could you please help me about the problem? Thanks~ 在 2013年9月26日星期四 UTC+8下午7:58:41,Li Qian写道: > > I posted an answer here: > > http://lqian.net/b/why-does-google-protobufs-api-parsefromstring-always-return-none/ > > In short, you were using the API in a wrong way. > > 在 2011年5月2