[protobuf] Read message without knowing which message type it will be

2011-06-13 Thread fmaltman
Hello. What's the correct way to read a message from an input stream without knowing which of the defined message types it will be? I have five or six message types and don't know in which order I'll receive messages of those types. -- You received this message because you are subscribed to the

[protobuf] Re: Read message without knowing which message type it will be

2011-06-13 Thread fmaltman
On Jun 13, 3:20 pm, Jason Hsueh jas...@google.com wrote: Does http://code.google.com/apis/protocolbuffers/docs/techniques.html#unio... I was hoping that wasn't going to be the answer, but I suppose there's nothing better. -- You received this message because you are subscribed to the Google