Re: cat/combining serialized binary files a legit option?

2009-04-01 Thread Kenton Varda
On Wed, Apr 1, 2009 at 2:04 PM, le wrote: > > Thanks for the reply. I think I understand what is happening here but > have an additional question. > > You stated three rules. When you say "...singular embedded messages/ > groups will be merged.", does that imply that the other rules are > simpl

Re: cat/combining serialized binary files a legit option?

2009-04-01 Thread le
Thanks for the reply. I think I understand what is happening here but have an additional question. You stated three rules. When you say "...singular embedded messages/ groups will be merged.", does that imply that the other rules are simply applied recursively? That is, suppose the .proto was

Re: cat/combining serialized binary files a legit option?

2009-04-01 Thread Kenton Varda
Concatenating encoded protocol messages has the effect of merging them, with the same semantics as the MergeFrom() method. That is, repeated fields will be concatenated, singular primitive fields will take the *last* value, and singular embedded messages/groups will be merged. In your case, your c