8 void
Gzip::WritePrestreamHeader()
13 AttachedTransformation()->
Put(MAGIC1);
14 AttachedTransformation()->Put(MAGIC2);
15 AttachedTransformation()->Put(DEFLATED);
16 AttachedTransformation()->Put(0);
17 AttachedTransformation()->PutWord32(0);
18 byte extra =
byte((GetDeflateLevel() == 1) ? FAST : ((GetDeflateLevel() == 9) ? SLOW : 0));
19 AttachedTransformation()->Put(extra);
40 :
Inflator(attachment, repeat, propagation), m_length(0)
Second header magic value.
#define NAMESPACE_BEGIN(x)
void ProcessPoststreamTail()
Exception thrown when a CRC error occurs.
Exception thrown when a length error occurs.
void ProcessUncompressedData(const byte *string, size_t length)
byte order is little-endian
Gunzip(BufferedTransformation *attachment=NULL, bool repeat=false, int autoSignalPropagation=-1)
Construct a Gunzip decompressor.
GZIP compression and decompression (RFC 1952)
Exception thrown when the tail is too short.
BufferedTransformation * AttachedTransformation()
Retrieve attached transformation.
void ProcessDecompressedData(const byte *string, size_t length)
void Update(const byte *input, size_t length)
Updates a hash with additional input.
DEFLATE decompressor (RFC 1951)
First header magic value.
GZIP Compression (RFC 1952)
size_t Get(byte &outByte)
Retrieve a 8-bit byte.
void WritePoststreamTail()
void ProcessPrestreamHeader()