|
Botan 3.13.0
Crypto and TLS for C&
|
#include <compression.h>
Public Member Functions | |
| void | clear () final |
| void | finish (secure_vector< uint8_t > &buf, size_t offset) final |
| virtual std::string | name () const =0 |
| void | update (secure_vector< uint8_t > &buf, size_t offset) final |
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) |
Used to implement decompression using Compression_Stream
Definition at line 304 of file compression.h.
|
finalvirtual |
Reset the state and abort the current message
Implements Botan::Decompression_Algorithm.
Definition at line 150 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 name().
Referenced by 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 97 of file compression.cpp.
References create().
|
finalvirtual |
Finish decompressing
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into buf to begin processing |
Implements Botan::Decompression_Algorithm.
Definition at line 216 of file compress_utils.cpp.
References Botan::fmt(), Botan::Decompression_Algorithm::name(), and Botan::Decompression_Algorithm::start().
|
pure virtualinherited |
Return the name of this decompression algorithm
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().
|
finalvirtual |
Decompress some data
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into buf to begin processing |
Implements Botan::Decompression_Algorithm.
Definition at line 205 of file compress_utils.cpp.
References Botan::Decompression_Algorithm::start().