Botan 3.0.0
Crypto and TLS for C&
|
#include <compression.h>
Public Member Functions | |
void | clear () final override |
void | finish (secure_vector< uint8_t > &buf, size_t offset) final override |
virtual std::string | name () const =0 |
void | update (secure_vector< uint8_t > &buf, size_t offset) final override |
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) |
FIXME add doc
Definition at line 220 of file compression.h.
|
finaloverridevirtual |
Reset the state and abort the current message; start can be called again to process a new message.
Implements Botan::Decompression_Algorithm.
Definition at line 137 of file compress_utils.cpp.
|
staticinherited |
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 Botan::Decompression_Algorithm::name().
Referenced by Botan::Decompression_Algorithm::create_or_throw(), and Botan::make_decompressor().
|
staticinherited |
Create an instance based on a name
algo_spec | algorithm name Throws Lookup_Error if not found. |
Definition at line 94 of file compression.cpp.
References Botan::Decompression_Algorithm::create().
|
finaloverridevirtual |
Finish decompressing
final_block | in/out parameter |
offset | an offset into final_block to begin processing |
Implements Botan::Decompression_Algorithm.
Definition at line 199 of file compress_utils.cpp.
References Botan::fmt(), and Botan::Decompression_Algorithm::name().
|
pure virtualinherited |
Implemented in Botan::Bzip2_Decompression, Botan::LZMA_Decompression, Botan::Zlib_Decompression, Botan::Deflate_Decompression, and Botan::Gzip_Decompression.
Referenced by Botan::Decompression_Algorithm::create(), and finish().
|
finaloverridevirtual |
Process some data.
buf | in/out parameter which will possibly be resized or swapped |
offset | an offset into blocks to begin processing |
Implements Botan::Decompression_Algorithm.
Definition at line 194 of file compress_utils.cpp.