1 #ifndef CRYPTOPP_GZIP_H 2 #define CRYPTOPP_GZIP_H 15 Gzip(
BufferedTransformation *attachment=NULL,
unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL,
unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE,
bool detectUncompressible=
true)
16 : Deflator(attachment, deflateLevel, log2WindowSize, detectUncompressible), m_totalLen(0) {}
18 : Deflator(parameters, attachment), m_totalLen(0) {}
21 enum {MAGIC1=0x1f, MAGIC2=0x8b,
22 DEFLATED=8, FAST=4, SLOW=2};
24 void WritePrestreamHeader();
25 void ProcessUncompressedData(
const byte *
string,
size_t length);
26 void WritePoststreamTail();
60 CONTINUED=2, EXTRA_FIELDS=4, FILENAME=8, COMMENTS=16, ENCRYPTED=32};
62 unsigned int MaxPrestreamHeaderSize()
const {
return 1024;}
63 void ProcessPrestreamHeader();
64 void ProcessDecompressedData(
const byte *
string,
size_t length);
65 unsigned int MaxPoststreamTailSize()
const {
return 8;}
66 void ProcessPoststreamTail();
GZIP Decompression (RFC 1952)
Abstract base classes that provide a uniform interface to this library.
DEFLATE (RFC 1951) compressor.
Classes for CRC-32 checksum algorithm.
Data integerity check, such as CRC or MAC, failed.
Gunzip(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
Construct a Gunzip.
Input data was received that did not conform to expected format.
DEFLATE (RFC 1951) decompressor.
Crypto++ library namespace.
GZIP Compression (RFC 1952)
CRC Checksum Calculation.
Interface for retrieving values given their names.