fn encode_with_frequencies( frequencies: &[u64], uncompressed: &[u16], run_length_code: usize, out: &mut Cursor<Vec<u8>>, ) -> Result<u64>