21 :
Deflator(attachment, deflateLevel, log2WindowSize, detectUncompressible) {}
23 :
Deflator(parameters, attachment) {}
25 unsigned int GetCompressionLevel()
const;
28 void WritePrestreamHeader();
29 void ProcessUncompressedData(
const byte *
string,
size_t length);
30 void WritePoststreamTail();
40 class HeaderErr :
public Err {
public: HeaderErr() : Err(
INVALID_DATA_FORMAT,
"ZlibDecompressor: header decoding error") {}};
42 class UnsupportedAlgorithm :
public Err {
public: UnsupportedAlgorithm() : Err(
INVALID_DATA_FORMAT,
"ZlibDecompressor: unsupported algorithm") {}};
43 class UnsupportedPresetDictionary :
public Err {
public: UnsupportedPresetDictionary() : Err(
INVALID_DATA_FORMAT,
"ZlibDecompressor: unsupported preset dictionary") {}};
50 unsigned int GetLog2WindowSize()
const {
return m_log2WindowSize;}
53 unsigned int MaxPrestreamHeaderSize()
const {
return 2;}
54 void ProcessPrestreamHeader();
55 void ProcessDecompressedData(
const byte *
string,
size_t length);
56 unsigned int MaxPoststreamTailSize()
const {
return 4;}
57 void ProcessPoststreamTail();
59 unsigned int m_log2WindowSize;
Class file for ADLER-32 checksum calculations.
ADLER-32 checksum calculations.
@ DEFAULT_LOG2_WINDOW_SIZE
Default window size (15)
@ DEFAULT_DEFLATE_LEVEL
Default deflation level, compromise between speed (6)
Deflator(BufferedTransformation *attachment=NULL, int deflateLevel=DEFAULT_DEFLATE_LEVEL, int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE, bool detectUncompressible=true)
Construct a Deflator compressor.
@ INVALID_DATA_FORMAT
Input data was received that did not conform to expected format.
@ DATA_INTEGRITY_CHECK_FAILED
Data integerity check, such as CRC or MAC, failed.
Inflator(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
RFC 1951 Decompressor.
Interface for retrieving values given their names.
ZlibDecompressor(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
Construct a ZlibDecompressor.
Abstract base classes that provide a uniform interface to this library.
Crypto++ library namespace.
DEFLATE compression and decompression (RFC 1951)
DEFLATE compression and decompression (RFC 1951)