pub fn write_u_varint<W: Write>(writer: &mut W, n: u64) -> Result<()>
Write a u64 value to the writer using u-varint encoding.