pub fn encode_sint32(value: i32, buf: &mut impl EncodeSink)Expand description
Encode a sint32 value as a varint using ZigZag encoding (wire type 0).
ZigZag maps signed integers to unsigned so that values with small absolute
magnitude produce short varints. Prefer this over encode_int32 when the
field regularly holds negative values.