pub fn write_i_varint<W: Write>(writer: &mut W, n: i64) -> Result<()>
Write an i64 value to the writer using i-varint encoding.