[protobuf] Re: tag number range explanation

2011-07-11 Thread nicolas hofmann
gt; in many internal applications. > > Note that simply adding a zero tag would cause the parser (CodedInputStream) > to stop reading bytes, but would also make ConsumedEntireMessage() false. > This would make most of the higher level message-parsing routines fail. > > On

[protobuf] Re: tag number range explanation

2011-07-08 Thread nicolas hofmann
a. > > I openly confess to having a strong like for "groups" - they do make the > encoding process simpler :p > > Marc > > On 7 Jul 2011, at 14:18, nicolas hofmann wrote: > > > > > > > > > My question is simple but i didn't found the an

[protobuf] tag number range explanation

2011-07-07 Thread nicolas hofmann
My question is simple but i didn't found the answer anywhere. I was wondering why the tag number range started at one and not zero. I was looking for a way to stream multiple messages without having to compute their sizes and realized that just add a zero tag number at the end could be a good way