Hi,

Say I have two messages a and b of types A and B respectively.

Can I serialize them to the same string?
Something like..
a.SerializeToString(&str);
b.SerializeTostring(&str_new);
str.append(str_new);

Then while parsing, I will do,
a.ParseFromString(str)
and b.ParseFromString(str).

I have tried this and it is working. But want to confirm whether it's
a correct thing to do or not?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to