|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <compression.h>
Public Member Functions | |
| void | clear () finaloverride |
| void | finish (secure_vector< uint8_t > &buf, size_t offset) finaloverride |
| virtual std::string | name () const =0 |
| void | update (secure_vector< uint8_t > &buf, size_t offset, bool flush) finaloverride |
Static Public Member Functions | |
| static std::unique_ptr< Compression_Algorithm > | create (const std::string &algo_spec) |
| static std::unique_ptr< Compression_Algorithm > | create_or_throw (const std::string &algo_spec) |
Used to implement compression using Compression_Stream
Definition at line 193 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::Compression_Algorithm.
Definition at line 50 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 54 of file compression.cpp.
References Botan::make_compressor().
Referenced by Botan::Compression_Algorithm::create_or_throw().
|
staticinherited |
Create an instance based on a name
| algo_spec | algorithm name Throws Lookup_Error if not found. |
Definition at line 62 of file compression.cpp.
References Botan::Compression_Algorithm::create().
|
finaloverridevirtual |
Finish compressing
| final_block | in/out parameter |
| offset | an offset into final_block to begin processing |
Implements Botan::Compression_Algorithm.
Definition at line 118 of file compress_utils.cpp.
References BOTAN_ASSERT, and clear().
|
pure virtualinherited |
Implemented in Botan::Gzip_Compression, Botan::Deflate_Compression, Botan::LZMA_Compression, Botan::Bzip2_Compression, and Botan::Zlib_Compression.
|
finaloverridevirtual |
Process some data.
| buf | in/out parameter which will possibly be resized or swapped |
| offset | an offset into blocks to begin processing |
| flush | if true the compressor will be told to flush state |
Implements Botan::Compression_Algorithm.
Definition at line 112 of file compress_utils.cpp.
References BOTAN_ASSERT.
1.8.9.1