Thanks David.

On Mar 24, 7:02 am, David Yu <david.yu....@gmail.com> wrote:
> On Thu, Mar 24, 2011 at 2:29 AM, Manish Joshi <xman...@gmail.com> wrote:
> > Hi,
>
> > I have 2 queries regarding protocol buffers
>
> > 1. Is protocol buffer capable of decoding data coded via another
> > protocol? For example I have diameter packet. If I write a .proto file
> > similar to diameter header and generate .pb.h and pb.cc files using
> > it, then is it possible for protocol buffer to read diameter data?
>
> Yep.
>
>
>
> > 2. How to handle a situation where length of a filed is not known in
> > advance.
> > For example if I am using string or bytes parameters,
>
> Protobuf byte strings are always length-delimited.
>
> > then how do
> > protocol buffer knows where to stop reading the data.
>
> At EOF (if the root message wasn't length-delimited)
>
>
>
> > Thanks
> > Manish
>
> > --
> > 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.
>
> --
> When the cat is away, the mouse is alone.
> - David Yu

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