BEEP-8 Helper Lib 1.0.0
|
Class for decoding data using run-length encoding (RLE). More...
#include <rle.h>
Public Types | |
enum | DecodeResult { DECODE_OK , DECODE_ERR_INVALID_SIGNATURE , DECODE_ERR_INVALID_PIPE , DECODE_ERR_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. | |
CRleDecoder::DecodeResult | Decode () |
Performs the RLE decoding process. | |
Class for decoding data using run-length encoding (RLE).
This class reads compressed data from an input pipe, performs RLE decompression, and writes the decompressed data to an output pipe.
CRleDecoder::DecodeResult Rle::CRleDecoder::Decode | ( | ) |
Performs the RLE decoding process.
void Rle::CRleDecoder::SetIn | ( | std::shared_ptr< Pipe::CPipe > | pipe_in_ | ) |
Sets the input pipe for the decoder.
pipe_in_ | Shared pointer to the input pipe. |
void Rle::CRleDecoder::SetOut | ( | std::shared_ptr< Pipe::CPipe > | pipe_out_ | ) |
Sets the output pipe for the decoder.
pipe_out_ | Shared pointer to the output pipe. |