qb
2.0.0.0
C++17 Actor Framework
|
Abstract interface for compression algorithm providers. More...
#include <compression.h>
Public Member Functions | |
virtual const std::string & | algorithm () const =0 |
Get the name of the compression algorithm. | |
virtual std::size_t | compress (const uint8_t *input, std::size_t input_size, uint8_t *output, std::size_t output_size, operation_hint hint, std::size_t &input_bytes_processed, bool &done)=0 |
Compress a block of data. | |
virtual void | reset ()=0 |
Reset the compressor to its initial state. | |
virtual | ~compress_provider ()=default |
Virtual destructor. |
Abstract interface for compression algorithm providers.
This class defines the interface that all compression algorithm implementations must implement. It provides methods for compression operations and algorithm identification.
|
pure virtual |
Get the name of the compression algorithm.
|
pure virtual |
Compress a block of data.
input | Pointer to the input data to compress |
input_size | Size of the input data in bytes |
output | Pointer to the output buffer where compressed data will be written |
output_size | Size of the output buffer in bytes |
hint | Hint about whether this is the last block or more blocks will follow |
input_bytes_processed | [out] Number of input bytes actually processed |
done | [out] Flag indicating whether compression is complete |
|
pure virtual |
Reset the compressor to its initial state.
This method should reset any internal state of the compressor, allowing it to be reused for a new compression stream.