25 #ifndef __CLOCKUTILS_COMPRESSION_ALGORITHM_HUFFMANGENERIC_H__ 26 #define __CLOCKUTILS_COMPRESSION_ALGORITHM_HUFFMANGENERIC_H__ 31 namespace compression {
43 static ClockError compress(
const std::string & uncompressed, std::string & compressed);
48 static ClockError decompress(
const std::string & compressed, std::string & decompressed);
54 static void convert(
const std::string & text,
const std::shared_ptr<Node> & node,
size_t index, std::string & result);
60 static std::vector<uint8_t> calcFrequencies(
const std::string & text);
#define CLOCK_COMPRESSION_API
class for Huffman compression using a dictionary generated out of the given string has always an over...
base class for Huffman compression contains common methods and helper structures