On 29 December 2014 at 10:53, Li Yan <magma917...@gmail.com> wrote:
> Hey guys,
>
> From https://developers.google.com/protocol-buffers/docs/encoding, I
> basically understand how to encode protocol buffers: the keys and values are
> concatenated into a byte stream. My question is whether there exists API to
> partially serialize/deserialize protocol buffers? I mean add serialized
> field at binary head, and only deserialize the first n fields in the binary
> protocol buffers.

You could use the CodedInputStream to read one field at a time.

-h

>
>
> Thanks,
> Li
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to