BEEP-8 Helper Lib 1.0.0
|
Class for encoding data using run-length encoding (RLE). More...
#include <rle.h>
Public Types | |
enum | EncodeResult { ENCODE_OK , ENCODE_ERR_INVALID_PIPE } |
Enum representing the result of the encoding process. More... | |
Public Member Functions | |
void | SetIn (std::shared_ptr< Pipe::CPipe > pipe_in_) |
Sets the input pipe for the encoder. | |
void | SetOut (std::shared_ptr< Pipe::CPipe > pipe_out_) |
Sets the output pipe for the encoder. | |
CRleEncoder::EncodeResult | Encode () |
Performs the RLE encoding process. | |
Class for encoding data using run-length encoding (RLE).
This class reads data from an input pipe, performs RLE compression, and writes the compressed data to an output pipe.
CRleEncoder::EncodeResult Rle::CRleEncoder::Encode | ( | ) |
Performs the RLE encoding process.
void Rle::CRleEncoder::SetIn | ( | std::shared_ptr< Pipe::CPipe > | pipe_in_ | ) |
Sets the input pipe for the encoder.
pipe_in_ | Shared pointer to the input pipe. |
void Rle::CRleEncoder::SetOut | ( | std::shared_ptr< Pipe::CPipe > | pipe_out_ | ) |
Sets the output pipe for the encoder.
pipe_out_ | Shared pointer to the output pipe. |