[protobuf] Serializing in c and deSerializing in python

2014-08-29 Thread Mani Abedini
Hi all, I have a problem serializing a message in C and deserializing it in python. The problem is that when I serialize a message in C, some of the values are 0 (zero) or negative (e.g. -150). Thus I can not send the serialize message as char* to python. Because, ctype of python expect string a

[protobuf] Serializing in C then deserializing in python

2014-08-29 Thread Mani Abedini
Hi I have a bit of issue for serializing in C and deserializing it in python, I defined a message to carry data, serialize it into array in C, then send it over to python (via ctype). I noticed that since the serialized array may contains 0 (zero) values, It is better of to send as array of in