|
Botan 3.13.0
Crypto and TLS for C&
|
#include <zlib.h>
Public Member Functions | |
| void | clear () final |
| void | finish (secure_vector< uint8_t > &buf, size_t offset) final |
| std::string | name () const override |
| void | update (secure_vector< uint8_t > &buf, size_t offset, bool flush) final |
Static Public Member Functions | |
| static std::unique_ptr< Compression_Algorithm > | create (std::string_view algo_spec) |
| static std::unique_ptr< Compression_Algorithm > | create_or_throw (std::string_view algo_spec) |
|
finalvirtualinherited |
Reset the state and abort the current message
Implements Botan::Compression_Algorithm.
Definition at line 83 of file compress_utils.cpp.
Referenced by finish().
|
staticinherited |
Create an instance based on a name, or return null if the algo combination cannot be found.
Definition at line 29 of file compression.cpp.
References BOTAN_UNUSED, and name().
Referenced by create_or_throw(), and Botan::make_compressor().
|
staticinherited |
Create an instance based on a name
| algo_spec | algorithm name Throws Lookup_Error if not found. |
Definition at line 59 of file compression.cpp.
References create().
|
finalvirtualinherited |
Finish compressing
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into buf to begin processing |
Implements Botan::Compression_Algorithm.
Definition at line 144 of file compress_utils.cpp.
References BOTAN_ASSERT, and clear().
|
inlineoverridevirtual |
Return the name of this compression algorithm
Implements Botan::Compression_Algorithm.
Definition at line 43 of file zlib.h.
|
finalvirtualinherited |
Compress some data
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into buf to begin processing |
| flush | if true the compressor will be told to flush state |
Implements Botan::Compression_Algorithm.
Definition at line 139 of file compress_utils.cpp.
References BOTAN_ASSERT.