Re: [protobuf] map issue in protoc 2.6.1 on Windows

2015-07-07 Thread adam . kosta
https://lh3.googleusercontent.com/-Y5FJtHxTNAM/VZwNXfrZgyI/AA4/ewy3EV7rl4M/s1600/protocol-map.JPG Ok thanks that explains - but the documentaion is misleading - see the attached image. On Monday, July 6, 2015 at 9:57:14 PM UTC+1, Feng Xiao wrote: Map is a feature added in 3.0.0. You

[protobuf] Protocol buffer Php implementation pblm

2015-07-07 Thread Aravinth Veeramuthu
Hi all, I m new to php-protobuf concept. When i run my php code i got the following error in my page? *Fatal error*: Class 'msg\Person' not found in *C:\xampp\htdocs\mypro\example.php* on line *6* *Help me!* *thanks,* *Aravinth v* -- You received this message because you are subscribed to

[protobuf] Equivalent of byteSize() in Java

2015-07-07 Thread Ashwin Venkataraman
What is the equivalent of the protobuf's ByteSize() function in Java ? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com.

[protobuf] DecodeRepeatedField Error while decoding

2015-07-07 Thread abdulwahidw
Hi, While decoding the binary data encoded by protobuf-c, I am getting the below error in python decoder. The decoding is successful if the encoded values are hardcoded by integers And also decoding is successful when it is done using protobuf-c. Any idea as to why this error shoots up in

[protobuf] protobuf is not decoding uint32 integer when it is right shifted

2015-07-07 Thread abdulwahidw
hi, I have a proto file, message Block { required uint32 code1 = 1; required uint32 code2 = 2; } Encoding is done using protobuf-c.code1 is populated by right shifting a 64-bit integer, For Ex: uint64_t temp ; code1 = temp 32; Now encoding is successful.Decoding in protobuf-c

[protobuf] Decoding error in python-protobuf

2015-07-07 Thread abdulwahidw
Hi, When encoding a unsigned integer variable I am right shifting it by 32 bits. Using protobuf-c, the same is decoded properly. but the problem seems to appear while decoding in .python-protobuf. Can you tell what is the reason for this ? Proto file: == message BlockID {