tcmpr.algorithms.utils package

Submodules

tcmpr.algorithms.utils.tools module

tcmpr.algorithms.utils.tools.convert_bytes_to_bit_str(byte_array)[source]

Convert bytes to bits string for decoding purpose

tcmpr.algorithms.utils.tools.get_byte_array(padded_encoded_string)[source]

Convert padded encoded string into bytes

tcmpr.algorithms.utils.tools.get_codes_from_binary_tree(root)[source]

Return code for each char in input data (original)

tcmpr.algorithms.utils.tools.get_decoded_str(root, encoded_string)[source]

Decode encoded string and return it

tcmpr.algorithms.utils.tools.get_encoded_str(root, data)[source]

Change data to encoded string and return it

tcmpr.algorithms.utils.tools.pad_encoded_str(encoded_string)[source]

Return padded encoded string with zero to full byte if missing

tcmpr.algorithms.utils.tools.remove_padding_of_encoded_str(padded_encoded_string)[source]

Remove padding to get original encoded string

Module contents