#include <compression.h>
Definition at line 19 of file compression.h.
virtual Botan::Compression_Algorithm::~Compression_Algorithm |
( |
| ) |
|
|
inlinevirtual |
virtual void Botan::Compression_Algorithm::clear |
( |
| ) |
|
|
pure virtual |
Reset the state and abort the current message; start can be called again to process a new message.
Implemented in Botan::Stream_Compression.
virtual void Botan::Compression_Algorithm::finish |
( |
secure_vector< uint8_t > & |
final_block, |
|
|
size_t |
offset = 0 |
|
) |
| |
|
pure virtual |
Finish compressing
- Parameters
-
final_block | in/out parameter |
offset | an offset into final_block to begin processing |
Implemented in Botan::Stream_Compression.
virtual std::string Botan::Compression_Algorithm::name |
( |
| ) |
const |
|
pure virtual |
virtual void Botan::Compression_Algorithm::start |
( |
size_t |
comp_level = 0 | ) |
|
|
pure virtual |
Begin compressing. Most compression algorithms offer a tunable time/compression tradeoff parameter generally represented by an integer in the range of 1 to 9.
If 0 or a value out of range is provided, a compression algorithm specific default is used.
virtual void Botan::Compression_Algorithm::update |
( |
secure_vector< uint8_t > & |
buf, |
|
|
size_t |
offset = 0 , |
|
|
bool |
flush = false |
|
) |
| |
|
pure virtual |
Process some data. Input must be in size update_granularity() uint8_t blocks.
- Parameters
-
buf | in/out parameter which will possibly be resized or swapped |
offset | an offset into blocks to begin processing |
flush | if true the compressor will be told to flush state |
Implemented in Botan::Stream_Compression.
The documentation for this class was generated from the following file: