Utils::Encodings::Deflate Namespace Reference


Functions

QByteArray compress (const QByteArray &rawData, int compressionLevel)
 "inflate"s the zlib compressedData.
QByteArray unCompress (const QByteArray &compressedData)


Function Documentation

QByteArray Utils::Encodings::Deflate::compress const QByteArray &  rawData,
int  compressionLevel = -1
 

"inflate"s the zlib compressedData.

Definition at line 40 of file Deflate.cpp.

QByteArray Utils::Encodings::Deflate::unCompress const QByteArray &  compressedData  ) 
 

Todo:
Since we cannot know the length of the uncompressed buffer, it would be better to not call uncompress() but rather call the sequence deflateInit(), a number of times daflate() and deflateEnd().
Todo:
What happens when the compressedData is corrupted?

Definition at line 69 of file Deflate.cpp.