1 #ifndef CRYPTOPP_ZLIB_H
2 #define CRYPTOPP_ZLIB_H
8 NAMESPACE_BEGIN(CryptoPP)
14 ZlibCompressor(
BufferedTransformation *attachment=NULL,
unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL,
unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE,
bool detectUncompressible=
true)
15 : Deflator(attachment, deflateLevel, log2WindowSize, detectUncompressible) {}
17 : Deflator(parameters, attachment) {}
19 unsigned int GetCompressionLevel()
const;
22 void WritePrestreamHeader();
23 void ProcessUncompressedData(
const byte *
string,
size_t length);
24 void WritePoststreamTail();
43 unsigned int GetLog2WindowSize()
const {
return m_log2WindowSize;}
46 unsigned int MaxPrestreamHeaderSize()
const {
return 2;}
47 void ProcessPrestreamHeader();
48 void ProcessDecompressedData(
const byte *
string,
size_t length);
49 unsigned int MaxPoststreamTailSize()
const {
return 4;}
50 void ProcessPoststreamTail();
52 unsigned int m_log2WindowSize;