pub fn huffman_decode(huffman_encoded_data: &HuffmanData) -> Vec<u8> {
    let encoded_data_bin_string_padded = u8_vec_to_bin_string(&huffman_encoded_data.encoded_data);
    let encoded_data_bin_string = unpad_encoded_data(&encoded_data_bin_string_padded);
    let decoded_data = huffman_decode_bin_string(&encoded_data_bin_string,&huffman_encoded_data.encoding_map);
    
    return decoded_data;
}
//Takes a Hex String and a HashMap containing the Encoding map
//Huffman Decodes it using the encoding map returns a string
Takes a Hex String and a HashMap containing the Encoding map
Huffman Decodes it using the encoding map returns a string
Takes a Hex String and a HashMap containing the Encoding map Huffman Decodes it using the encoding map returns a string
pub fn huffman_decode(huffman_encoded_data: &HuffmanData) -> Vec<u8> {
    let encoded_data_bin_string_padded = u8_vec_to_bin_string(&huffman_encoded_data.encoded_data);
    let encoded_data_bin_string = unpad_encoded_data(&encoded_data_bin_string_padded);
    let decoded_data = huffman_decode_bin_string(&encoded_data_bin_string,&huffman_encoded_data.encoding_map);
    return decoded_data;
}
pub fn huffman_decode ( huffman_encoded_data : & HuffmanData ) -> Vec < u8 > { let encoded_data_bin_string_padded = u8_vec_to_bin_string ( & huffman_encoded_data . encoded_data ) ; let encoded_data_bin_string = unpad_encoded_data ( & encoded_data_bin_string_padded ) ; let decoded_data = huffman_decode_bin_string ( & encoded_data_bin_string , & huffman_encoded_data . encoding_map ) ; return decoded_data ; }
Takes a Hex String and a HashMap containing the Encoding map
Huffman Decodes it using the encoding map returns a string
Takes a Hex String and a HashMap containing the Encoding map Huffman Decodes it using the encoding map returns a string
huffman_encoded_data
&HuffmanData
huffman_encoded_data
&HuffmanData