pub fn encode_varint(buf: &mut BytesMut, i: usize)
Encodes i as a variable-length integer, writing it into buf.
i
buf