#include <zlib.h>
Zlib Compression Filter
Definition at line 19 of file zlib.h.
| Botan::Zlib_Compression::Zlib_Compression |
( |
size_t |
level = 6, |
|
|
bool |
raw_deflate = false |
|
) |
| |
- Parameters
-
| level | how much effort to use on compressing (0 to 9); higher levels are slower but tend to give better compression |
| raw_deflate | if true no zlib header/trailer will be used |
Definition at line 96 of file zlib.cpp.
98 level((l >= 9) ? 9 : l),
99 raw_deflate(raw_deflate),
100 buffer(DEFAULT_BUFFERSIZE),
}
| void Botan::Filter::send |
( |
const byte |
in[], |
|
|
size_t |
length |
|
) |
| |
|
protectedvirtualinherited |
- Parameters
-
| in | some input for the filter |
| length | the length of in |
Reimplemented in Botan::Threaded_Fork.
Definition at line 28 of file filter.cpp.
References Botan::Filter::write().
Referenced by Botan::PK_Encryptor_Filter::end_msg(), end_msg(), Botan::Bzip_Compression::end_msg(), Botan::Lzma_Compression::end_msg(), Botan::Hex_Encoder::end_msg(), Botan::Base64_Encoder::end_msg(), Botan::PK_Decryptor_Filter::end_msg(), Botan::Bzip_Decompression::end_msg(), Botan::PK_Signer_Filter::end_msg(), Botan::Lzma_Decompression::end_msg(), Botan::Zlib_Decompression::end_msg(), Botan::Hex_Decoder::end_msg(), Botan::Base64_Decoder::end_msg(), Botan::PK_Verifier_Filter::end_msg(), Botan::Hash_Filter::end_msg(), Botan::MAC_Filter::end_msg(), Botan::Bzip_Compression::flush(), flush(), Botan::Lzma_Compression::flush(), Botan::Bzip_Compression::write(), write(), Botan::Lzma_Compression::write(), Botan::StreamCipher_Filter::write(), Botan::Bzip_Decompression::write(), Botan::Lzma_Decompression::write(), Botan::Zlib_Decompression::write(), Botan::Hex_Decoder::write(), and Botan::Base64_Decoder::write().
30 bool nothing_attached =
true;
31 for(
size_t j = 0; j != total_ports(); ++j)
34 if(write_queue.size())
35 next[j]->
write(&write_queue[0], write_queue.size());
36 next[j]->write(input, length);
37 nothing_attached =
false;
41 write_queue += std::make_pair(input, length);