libnative-utilities/include/utils/ZLibUtils.hpp
2024-08-15 18:40:30 +08:00

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