BEEP-8 Helper Lib 1.0.0
|
Class for decoding data streams encoded with ZPack compression methods. More...
#include <zpack.h>
Public Types | |
enum | DecodeResult { DECODE_OK , DECODE_ERR_INVALID_SIGNATURE , DECODE_INVALID_DATA } |
Enum representing the result of the decoding process. More... | |
Public Member Functions | |
void | SetIn (std::shared_ptr< Pipe::CPipe > pipe_in_) |
Sets the input pipe for the decoder. | |
void | SetOut (std::shared_ptr< Pipe::CPipe > pipe_out_) |
Sets the output pipe for the decoder. | |
CZPackDecoder::DecodeResult | Decode () |
Decodes the data from the input pipe and writes it to the output pipe. | |
Class for decoding data streams encoded with ZPack compression methods.
This class provides methods to set input and output pipes and to perform the decoding of data streams that were compressed using Huffman encoding, RLE, or no compression.
CZPackDecoder::DecodeResult CZPackDecoder::Decode | ( | ) |
Decodes the data from the input pipe and writes it to the output pipe.
void CZPackDecoder::SetIn | ( | std::shared_ptr< Pipe::CPipe > | pipe_in_ | ) |
Sets the input pipe for the decoder.
pipe_in_ | Shared pointer to the input pipe. |
void CZPackDecoder::SetOut | ( | std::shared_ptr< Pipe::CPipe > | pipe_out_ | ) |
Sets the output pipe for the decoder.
pipe_out_ | Shared pointer to the output pipe. |