[protobuf] Re: Decode size delimited compressed protobuf file in python

2024-05-17 Thread Mr Moose
I have figured it out by myself. The problem is that _DecodeVarint() may only consume fewer than the 4 bytes reserved for it and reports how long it really was in the second return tuple element. So progressing offset by that returned value rather than 4 does the trick. Cheers, Moose Mr Moose

[protobuf] Decode size delimited compressed protobuf file in python

2024-05-17 Thread Mr Moose
Hello everyone, I hope I can find some advise here. I have C++ code that writes a number of protobuf messages to a compressed size delimited stream like this (simplified): FILE *ofile = fopen("myfile.bin.gz", "wb"); google::protobuf::io::FileOutputStream ostream(_fileno(ofile));

[protobuf] Re: protobuf rpc over http

2009-12-11 Thread Mr Moose
Hi Romain, On 9 Dez., 12:10, Romain François francoisrom...@free.fr wrote: http is quite verbose for sending protobuf message around, but it is likely to be implemented for a lot of languages. we did just this here. We wrote an RPC implementation complete with HTTP transport and protobuf as

Re: assertion crash with debug build on windows

2009-07-16 Thread Mr Moose
Jul., 08:33, Mr Moose stephan.men...@gmail.com wrote: Kenton, well, I checked this over and over again and I really think I did make sure. I also checked the linker settings for all other libs I link against and they are all set to Debug. Also, this is the same build environment I used

Re: On vacation through July 22nd.

2009-07-16 Thread Mr Moose
Enjoy! S. On 16 Jul., 01:42, Kenton Varda ken...@google.com wrote: Hi all, I will be on vacation and not checking e-mail through July 22nd.  I've asked fellow protobuf dev Jason to help answer questions in the meantime, but if you see a question that isn't answered and you know the answer,

Re: assertion crash with debug build on windows

2009-07-16 Thread Mr Moose
obscure but I tend to think _SECURE_SCL might alter headers and type definitions to the using app and the lib are using differently sized types. Cheers, Stephan On 16 Jul., 09:29, Mr Moose stephan.men...@gmail.com wrote: OK, just for the records: Now I can be really sure. I've deleted

assertion crash with debug build on windows

2009-07-15 Thread Mr Moose
Hi there, I am experiencing crashes in a protocol buffers file using debug build on windows (VC2005). On Linux, debug or not and on Windows release everything is fine but when I try to run the code on debug it raises an assertion to crash right afterwards. I'm using 2.1 here's what the