|
Botan 3.12.0
Crypto and TLS for C&
|
#include <compression.h>
Public Member Functions | |
| virtual void | clear ()=0 |
| virtual void | finish (secure_vector< uint8_t > &final_block, size_t offset=0)=0 |
| virtual std::string | name () const =0 |
| virtual void | start ()=0 |
| virtual void | update (secure_vector< uint8_t > &buf, size_t offset=0)=0 |
| virtual | ~Decompression_Algorithm ()=default |
Static Public Member Functions | |
| static std::unique_ptr< Decompression_Algorithm > | create (std::string_view algo_spec) |
| static std::unique_ptr< Decompression_Algorithm > | create_or_throw (std::string_view algo_spec) |
Definition at line 93 of file compression.h.
|
virtualdefault |
|
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.
|
static |
Create an instance based on a name, or return null if the algo combination cannot be found.
Definition at line 67 of file compression.cpp.
References BOTAN_UNUSED, and name().
Referenced by create_or_throw(), and Botan::make_decompressor().
|
static |
Create an instance based on a name
| algo_spec | algorithm name Throws Lookup_Error if not found. |
Definition at line 97 of file compression.cpp.
References create().
|
pure virtual |
Finish decompressing
Decompress the material in the in/out parameter buf. The leading offset bytes of buf are ignored and remain untouched; this can be useful for ignoring packet headers.
This function may throw if the data seems to be invalid.
| final_block | in/out parameter |
| offset | an offset into final_block to begin processing |
Implemented in Botan::Stream_Decompression.
|
pure virtual |
Implemented in Botan::Bzip2_Decompression, Botan::Deflate_Decompression, Botan::Gzip_Decompression, Botan::LZMA_Decompression, and Botan::Zlib_Decompression.
Referenced by create(), and Botan::Stream_Decompression::finish().
|
pure virtual |
Begin decompressing.
This initializes the decompression engine and must be done before calling update() or finish(). No level is provided here; the decompressor can accept input generated by any compression parameters.
Referenced by Botan::Stream_Decompression::finish(), and Botan::Stream_Decompression::update().
|
pure virtual |
Process some data.
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into blocks to begin processing |
Implemented in Botan::Stream_Decompression.