1 #ifndef CRYPTOPP_ZLIB_H 2 #define CRYPTOPP_ZLIB_H 15 ZlibCompressor(
BufferedTransformation *attachment=NULLPTR,
unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL,
unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE,
bool detectUncompressible=
true)
16 :
Deflator(attachment, deflateLevel, log2WindowSize, detectUncompressible) {}
18 :
Deflator(parameters, attachment) {}
20 unsigned int GetCompressionLevel()
const;
23 void WritePrestreamHeader();
24 void ProcessUncompressedData(
const byte *
string,
size_t length);
25 void WritePoststreamTail();
45 unsigned int GetLog2WindowSize()
const {
return m_log2WindowSize;}
48 unsigned int MaxPrestreamHeaderSize()
const {
return 2;}
49 void ProcessPrestreamHeader();
50 void ProcessDecompressedData(
const byte *
string,
size_t length);
51 unsigned int MaxPoststreamTailSize()
const {
return 4;}
52 void ProcessPoststreamTail();
54 unsigned int m_log2WindowSize;
ZlibDecompressor(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
Construct a ZlibDecompressor.
Abstract base classes that provide a uniform interface to this library.
DEFLATE compressor (RFC 1951)
DEFLATE compression and decompression (RFC 1951)
Data integerity check, such as CRC or MAC, failed.
ADLER-32 checksum calculations.
Input data was received that did not conform to expected format.
ZLIB Compressor (RFC 1950)
ZLIB Decompressor (RFC 1950)
Class file for ADLER-32 checksum calculations.
DEFLATE decompressor (RFC 1951)
Crypto++ library namespace.
Interface for retrieving values given their names.