69constexpr u8 Signature = 0x99;
90 std::shared_ptr< Pipe::CPipe > _pipe_in = std::make_shared< Pipe::CNullPipe >();
91 std::shared_ptr< Pipe::CPipe > _pipe_out = std::make_shared< Pipe::CNullPipe >();
97 void SetIn ( std::shared_ptr< Pipe::CPipe > pipe_in_ );
103 void SetOut( std::shared_ptr< Pipe::CPipe > pipe_out_ );
120 std::shared_ptr< Pipe::CPipe > _pipe_in = std::make_shared< Pipe::CNullPipe >();
121 std::shared_ptr< Pipe::CPipe > _pipe_out = std::make_shared< Pipe::CNullPipe >();
137 void SetIn ( std::shared_ptr< Pipe::CPipe > pipe_in_ );
143 void SetOut( std::shared_ptr< Pipe::CPipe > pipe_out_ );
Class for decoding data streams encoded with ZPack compression methods.
Definition zpack.h:119
CZPackDecoder::DecodeResult Decode()
Decodes the data from the input pipe and writes it to the output pipe.
Definition zpack.cpp:106
void SetIn(std::shared_ptr< Pipe::CPipe > pipe_in_)
Sets the input pipe for the decoder.
Definition zpack.cpp:98
void SetOut(std::shared_ptr< Pipe::CPipe > pipe_out_)
Sets the output pipe for the decoder.
Definition zpack.cpp:102
DecodeResult
Enum representing the result of the decoding process.
Definition zpack.h:127
@ DECODE_ERR_INVALID_SIGNATURE
Invalid signature in the encoded data.
Definition zpack.h:129
@ DECODE_INVALID_DATA
Invalid data in the encoded stream.
Definition zpack.h:130
@ DECODE_OK
Decoding was successful.
Definition zpack.h:128
Class for encoding data streams using various compression methods.
Definition zpack.h:89
void SetIn(std::shared_ptr< Pipe::CPipe > pipe_in_)
Sets the input pipe for the encoder.
Definition zpack.cpp:19
void Encode()
Encodes the data from the input pipe and writes it to the output pipe.
Definition zpack.cpp:27
void SetOut(std::shared_ptr< Pipe::CPipe > pipe_out_)
Sets the output pipe for the encoder.
Definition zpack.cpp:23
Module for data pipeline processing using pipes.
CompressionMethod
Enum representing the available compression methods.
Definition zpack.h:75
@ HuffmanToRle
Huffman encoding followed by Run-Length Encoding (RLE)
Definition zpack.h:76
@ Huffman
Huffman encoding only.
Definition zpack.h:77
@ FlatWithSize
No compression, includes original size.
Definition zpack.h:79
@ Flat
No compression.
Definition zpack.h:78