Hi,

Is there any way to read a protobuf from a file input stream without
consuming the entire file? Say for example if the file contains more
than just one protobuf?

I'd like to archive a stream of protobufs to a file for later analysis
by simply writing them one after another to a single file with
SerializeToOstream(&output) in C++. However according to the
documentation, ParseFromIstream(&input) will always consume the entire
file. Is there any way around this? Or is there not enough information
in the encoded protobuf for this to be possible?

-- 
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