BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
Huffman::CHuffmanDecoder Class Reference

Class for Huffman decoding. More...

#include <huffman.h>

Public Types

enum  DecodeResult { DECODE_OK , DECODE_ERR_INVALID_SIGNATURE , DECODE_INVALID_DATA }
 Enumeration for the result of the decoding process.
 

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.
 
CHuffmanDecoder::DecodeResult Decode ()
 Performs Huffman decoding on the input data.
 

Detailed Description

Class for Huffman decoding.

This class provides methods to decode data that was encoded using Huffman coding.

Member Function Documentation

◆ Decode()

CHuffmanDecoder::DecodeResult CHuffmanDecoder::Decode ( )

Performs Huffman decoding on the input data.

Returns
The result of the decoding process.

◆ SetIn()

void CHuffmanDecoder::SetIn ( std::shared_ptr< Pipe::CPipe > pipe_in_)

Sets the input pipe for the decoder.

Parameters
pipe_in_The input pipe.

◆ SetOut()

void CHuffmanDecoder::SetOut ( std::shared_ptr< Pipe::CPipe > pipe_out_)

Sets the output pipe for the decoder.

Parameters
pipe_out_The output pipe.

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