Thank you Jason for the reply.

On May 8, 9:14 pm, Jason Hsueh <jas...@google.com> wrote:
> Fromhttps://developers.google.com/protocol-buffers/docs/encoding#types:
>
> If you use int32 or int64 as the type for a negative number, the resulting
> varint is *always ten bytes long*
>
> Per the section's recommendation you should use sint32/sint64 if you expect
> to have signed values.
>
>
>
>
>
>
>
> On Tue, May 8, 2012 at 5:51 AM, bhaskar20001 <bhaskar20...@gmail.com> wrote:
> > Hi,
>
> >  I want to know how may bytes will be used when Int32 is encoded for
> > Java library and C++ in case of negative values.
>
> >  Is there any difference in number of bytes used for encoding in case
> > of +ve and -ve values for Java library and C++ library.
>
> > Thanks,
> > Bhaskar
>
> > --
> > 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