libnative-utilities/include/utils/ZLibUtils.hpp

21 lines
573 B
C++
Raw Permalink Normal View History

2024-08-15 18:40:30 +08:00
#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