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;
ZlibDecompressor(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
DEFLATE (RFC 1951) compressor.
data integerity check (such as CRC or MAC) failed
ADLER-32 checksum calculations.
received input data that doesn't conform to expected format
ZLIB Compressor (RFC 1950)
ZLIB Decompressor (RFC 1950)
DEFLATE (RFC 1951) decompressor.
interface for retrieving values given their names