I have a puzzle for a long time that why a negative int32 must be
encoded into 10 bytes instead of 5, 5 bytes of encoded var int has
enough bits(5*7=35) to represent a 32 bit value, and packet decoder
know it's a int32 so it extract 32 bits outof 5 bytes to restore the
int32 precisely, even if it's negtive.So why must protobuf encode
negative int32 to 10 bytes? Thank you.

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