Botan
2.1.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 |
Used to implement compression using Compression_Stream
Definition at line 132 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 55 of file compress_utils.cpp.
Referenced by finish().
|
finaloverridevirtual |
Finish compressing
final_block | in/out parameter |
offset | an offset into final_block to begin processing |
Implements Botan::Compression_Algorithm.
Definition at line 111 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. Input must be in size update_granularity() uint8_t blocks.
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 105 of file compress_utils.cpp.
References BOTAN_ASSERT.