"... for a negative number, the resulting varint is *always ten bytes long
..."*

I didn't saw that part.
Thanx

2010/3/21 Evan Jones <[email protected]>

> On Mar 21, 2010, at 8:46 , adamdms wrote:
>
>> I am wonder why int32 field (with negative value) has 10 bytes?
>> 10 - field No 2, wire type 0
>> FD FF FF FF FF FF FF FF FF 01 - field value = -3
>>
>> Can someone explain it to me?
>>
>
> See: http://code.google.com/apis/protocolbuffers/docs/encoding.html#types
>
> Hope this helps,
>
> Evan
>
> --
> Evan Jones
> http://evanjones.ca/
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to