jubilant-funicular
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
nta::Compressor Class Reference

Static class for compressing byte buffers. More...

#include <Compressor.h>

Collaboration diagram for nta::Compressor:
Collaboration graph
[legend]

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 HuffmanNodem_root
 the root of the created Huffman tree
 

Detailed Description

Static class for compressing byte buffers.

Definition at line 53 of file Compressor.h.


The documentation for this class was generated from the following files: