On Wed, Dec 7, 2016 at 9:04 PM, Pranav_IN <[email protected]> wrote:

> Hi,
>
> Is it possible to add a serialized message/buffer to the repeated field
> without desirialization and serialize the repeated message?
>
> Message Person{
>   required string Name;
>   required string Mobile;
> }
>
> Message PhoneBook {
>   repeated Person;
> }
>
Suppose you already have a serialized PhoneBook with many entries (say
byte_sequence1), you can just append to it the serialized bytes of another
PhoneBook message with one (or more) entries (say byte_sequence2). I.e.,
after parsing (byte_sequence1 + byte_sequence2) the parsed PhoneBook will
have repeated field entries from both PhoneBook messages combined.


>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to