fn write_varint(out: &mut Vec<u8>, value: u64)
Appends an unsigned LEB128 varint, the multiformats encoding.