fn encode_long(i: i64, buffer: &mut Vec<u8>)