Re: encoding of embedded messages and repeated elements

2009-06-24 Thread etorri
Does some existing parser actually implement that skipping feature? There would not be any need for a end-tag. Let's assume that there would be two different tags 2 - Length_Delimited, which could contain a packed list of bytes (string, memory block) or other types where the parser needs to kn

Re: encoding of embedded messages and repeated elements

2009-06-23 Thread etorri
ok thanks. it is as it is. (just looking at the feasibility of implementing the PB in Ada for my own projects :-) On Jun 23, 6:17 pm, Alek Storm wrote: > Hi etorri, > > Embedded messages and strings have the exact same wire format. When parsing > a message, it's impossibl

encoding of embedded messages and repeated elements

2009-06-23 Thread etorri
Hello, The "length delimited" encoding basically tells that the following N bytes belong to this field. Wouldn't it be easier to instead use the number of elements that belong to the embedded message (repeated element). Now (as far as I have understood) the message needs to be built from fragme