jubilant-funicular
|
Static class for compressing byte buffers. More...
#include <Compressor.h>
Static Public Member Functions | |
static std::vector< GLubyte > | decompress (const std::vector< GLubyte > &data) |
decompressed data that was compressed by this class | |
static std::vector< GLubyte > | compress (const std::vector< GLubyte > &data) |
compresses a bye buffer | |
Static Private Member Functions | |
static std::string | toBinary (int num, int numBits=8) |
converts number to its binary representation | |
static int | fromBinary (crstring num) |
reads a binary number from a string | |
static void | createTree (const std::vector< GLubyte > &data) |
creates a Huffman tree from a buffer | |
Static Private Attributes | |
static std::map< GLubyte, std::string > | m_encodings |
the encodings generated from the tree | |
static HuffmanNode * | m_root |
the root of the created Huffman tree | |
Static class for compressing byte buffers.
Definition at line 53 of file Compressor.h.