Huffman compression.
More...
#include <base/compression/Huffman.h>
Inherits Object.
Huffman compression.
Huffman compression.
- Version
- 1.0
◆ Huffman()
The symbols. Initializes the object.
◆ decode()
void Huffman::decode |
( |
OutputStream & |
stream, |
|
|
const uint8 * |
buffer, |
|
|
unsigned int |
size |
|
) |
| |
Decodes the content of the specified buffer.
- Parameters
-
stream | The output stream. |
buffer | The buffer. |
size | The size of the buffer in bytes. |
◆ encode()
void Huffman::encode |
( |
OutputStream & |
stream, |
|
|
const uint8 * |
buffer, |
|
|
unsigned int |
size |
|
) |
| |
|
noexcept |
Encodes the content of the specified buffer.
- Parameters
-
stream | The output stream. |
buffer | The buffer. |
size | The size of the buffer in bytes. |