#include <compression.h>
Definition at line 81 of file compression.h.
◆ ~Decompression_Algorithm()
virtual Botan::Decompression_Algorithm::~Decompression_Algorithm |
( |
| ) |
|
|
virtualdefault |
◆ clear()
virtual void Botan::Decompression_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_Decompression.
◆ create()
Create an instance based on a name, or return null if the algo combination cannot be found.
Definition at line 98 of file compression.cpp.
99 {
101 return decompressor;
102 }
Decompression_Algorithm * make_decompressor(const std::string &name)
References Botan::make_decompressor().
Referenced by create_or_throw().
◆ create_or_throw()
std::unique_ptr< Decompression_Algorithm > Botan::Decompression_Algorithm::create_or_throw |
( |
const std::string & |
algo_spec | ) |
|
|
static |
Create an instance based on a name
- Parameters
-
Definition at line 106 of file compression.cpp.
107 {
109 {
110 return decompressor;
111 }
112 throw Lookup_Error("Decompression", algo, "");
113 }
static std::unique_ptr< Decompression_Algorithm > create(const std::string &algo_spec)
References create().
◆ finish()
virtual void Botan::Decompression_Algorithm::finish |
( |
secure_vector< uint8_t > & |
final_block, |
|
|
size_t |
offset = 0 |
|
) |
| |
|
pure virtual |
Finish decompressing
- Parameters
-
final_block | in/out parameter |
offset | an offset into final_block to begin processing |
Implemented in Botan::Stream_Decompression.
◆ name()
virtual std::string Botan::Decompression_Algorithm::name |
( |
| ) |
const |
|
pure virtual |
◆ start()
virtual void Botan::Decompression_Algorithm::start |
( |
| ) |
|
|
pure virtual |
Begin decompressing. Decompression does not support levels, as compression does.
◆ update()
virtual void Botan::Decompression_Algorithm::update |
( |
secure_vector< uint8_t > & |
buf, |
|
|
size_t |
offset = 0 |
|
) |
| |
|
pure virtual |
Process some data.
- Parameters
-
buf | in/out parameter which will possibly be resized or swapped |
offset | an offset into blocks to begin processing |
Implemented in Botan::Stream_Decompression.
The documentation for this class was generated from the following files: