21 lines
573 B
C++
21 lines
573 B
C++
|
#ifndef ZLIBUTILS_HPP
|
||
|
#define ZLIBUTILS_HPP
|
||
|
|
||
|
class ZLibUtils{
|
||
|
|
||
|
private:
|
||
|
|
||
|
ZLibUtils();
|
||
|
|
||
|
public:
|
||
|
|
||
|
static unsigned char* compressData(const unsigned char* data, unsigned long dataLength, unsigned long* resultLength);
|
||
|
|
||
|
static unsigned char* decompressData(const unsigned char* data, unsigned long dataLength, unsigned long* resultLength);
|
||
|
|
||
|
static int decompressData(const unsigned char* data, unsigned long dataLength, unsigned char* resultBuffer, unsigned long resultBufferSize, unsigned long* resultLength);
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // ZLIBUTILS_H
|