[protobuf] Re: Deleting a member at particular index in a repeated member

2011-10-18 Thread Eyal Farago
this is not doing exactly what Suraj asked for, as it modifies the order of elements in the repeated field. assuming order of the elements does matter, you have two options: 1. use the SwapElements() idiom in a loop until the element to be removed is the last one and than call RemoveLast(). 2. get

[protobuf] proposed optimization to google.protobuf 2.4.1 (C++)

2011-10-18 Thread Eyal Farago
I originally sent this to Kenton, but isince he's no longer maintaining GPB he suggested I'd post this here. As part of working on a feature that uses protobuf for serialization, I profiled a process that spent about 50% of its time parsing a protobuf message, this message has a large packed

[protobuf] decode messages that are in protocol buffer format

2011-10-18 Thread newbie
Hi, I am developing a sniffer that will sniff messages moving between a message broker and DWH. The messages are written in protocol buffers serialization format. So the message body that I sniff is a byte string. How do I decode this message to human readable format? The sniffer is developed

Re: [protobuf] decode messages that are in protocol buffer format

2011-10-18 Thread Marc Gravell
Well, firstly protobuf is not a text format, so UTF-8 is not the way to start. What is it you need? Note that the protobuf format is ambiguous unless you already know the schema (the same data can be interpreted in different ways). However, if you read the encoding spec, you should be able to

Re: [protobuf] decode messages that are in protocol buffer format

2011-10-18 Thread Aaron Rich
I would highly recommend looking at this: http://code.google.com/p/protobuf-wireshark/ Might get you want you need. -Aaron On Tue, Oct 18, 2011 at 11:02 AM, Marc Gravell marc.grav...@gmail.com wrote: Well, firstly protobuf is not a text format, so UTF-8 is not the way to start. What is it