Kind of what I suspected. Alright, thanks!

On Jun 23, 12:41 pm, Jason Hsueh <jas...@google.com> wrote:
> There's not enough information: 
> seehttp://code.google.com/apis/protocolbuffers/docs/techniques.html#stre...
>
>
>
>
>
>
>
> On Thu, Jun 23, 2011 at 8:55 AM, mjs483 <matt.shi...@gmail.com> wrote:
> > 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.

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