pub fn encode_varint(output: &mut Vec<u8>, value: usize) -> Result<()>
Variable-length integer encoding (LEB128/varint)
More efficient than fixed 8-byte encoding for small integers.