//testZlib.h
#ifndef TESTZLIB_H
#define TESTZLIB_H
#include "zLib/zlib.h"
#include <QByteArray>
class testZlib
{
public:
testZlib();
public:
int ZlibGetDecodeLength(long InRawLength);
int ZlibGetDecodeLength(QByteArray InRawData);
int ZlibCompress(QByteArray &outEncodeData,QByteArray InRawData,int* nErrorCode = NULL);
int ZlibUncompress(QByteArray &outDecodeData,QByteArray InEncodeData,int* nErrorCode = NULL);
};
#endif // TESTZLIB_H
//testZlib.cpp
#include "testzlib.h"
testZlib::testZlib()
{
}
int testZlib::ZlibGetDecodeLength(long InRawLength)
{
return compressBound(InRawLength);
}
int testZlib::ZlibGetDecodeLength(