Hello,
I'm trying to use protocol buffers as a means to stream data, where an
application would iteratively read messages from some input source.
Messages have different types, so to be able to call
`m.ParseFromIstream(input)` with an object `m` of appropriate type, I need
to read ahead to identify the type of the next message so I can instantiate
it. Do the IO APIs provide such a feature (I'm most interested into C++ and
Python) ? I read about different ways to handle this (using `extend` to
mimic polymorphism, mostly), I find that quite cumbersome and inefficient.
So what's the best way to approach this ?
Thanks,
Stefan
--
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.