[protobuf] irc channel

2010-05-03 Thread jamesmikedup...@googlemail.com
hi there, any of you protobuf gurus on freenode.net? i am on #protobuf waiting for you. thanks, mike -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this

[protobuf] got osm reader running in c++

2010-05-05 Thread jamesmikedup...@googlemail.com
Hi all, just a quick note. With some help from pathorn on irc.freenode.net #protobuf i finally ported my code from using copies of the buffers to using code here http://github.com/h4ck3rm1k3/OSM-Osmosis check the main file :

Re: [protobuf] Can't read in Java message sent from C++

2010-07-10 Thread jamesmikedup...@googlemail.com
I encountered a similar problem with reading the bytes in C++ from data written in Java. Solved it by swapping the bytes : uint32_t magic_number = ntohl(magic_number_); http://github.com/h4ck3rm1k3/OSM-Osmosis/commit/714be97af12698f83152d2c1d0e407337e82803b mike On Sat, Jul 10, 2010 at 1:47

Re: [protobuf] Re: Can't read in Java message sent from C++

2010-07-10 Thread jamesmikedup...@googlemail.com
the leading variant in c++ is most likely in the wrong byte order if you are running a x86 machine. as i said, you need to flip them. mike On Sat, Jul 10, 2010 at 8:53 PM, Maxim Leonovich lm.b...@gmail.com wrote: I watched on both buffers: they are similar, but in C++ I can't find a leading

Re: [protobuf] Re: Can't read in Java message sent from C++

2010-07-10 Thread jamesmikedup...@googlemail.com
...@googlemail.com jamesmikedup...@googlemail.com wrote: the leading variant in c++ is most likely in the wrong byte order if you are running a x86 machine. as i said, you need to flip them. mike On Sat, Jul 10, 2010 at 8:53 PM, Maxim Leonovich lm.b...@gmail.com wrote: I watched on both buffers