๐Ÿ“Protobuf: negative values for int32 and int64 are always 10-bytes long

In protobuf, ZigZag encoding is only applied to explicitly-signed types (sint32 and sint64).

For int32 and int64, negative values are always stored as very large positive number and always 10-bytes long (even for int32).

Next:

Backlinks