pub fn read_varint_i64(buf: &[u8], pos: usize) -> Result<(i64, usize)>