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

cat/combining serialized binary files a legit option?

2009-04-01 Thread le
I'm currently using protocol buffers to serialize variable-rate real- time data. Per requirements I must serialize this data and make it available every X seconds. At the end of the day we are required to have a single file that contains all of the data. So, after searching this group I discove