encode_varint

Function encode_varint 

Source
pub fn encode_varint(output: &mut Vec<u8>, value: usize) -> Result<()>
Expand description

Variable-length integer encoding (LEB128/varint)

More efficient than fixed 8-byte encoding for small integers.