libnative-utilities/include/utils/GzipUtils.hpp

18 lines
540 B
C++
Raw Permalink Normal View History

2024-08-15 18:40:30 +08:00
#ifndef GZIPUTILS_HPP
#define GZIPUTILS_HPP
class GzipUtils{
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 // GZIPUTILS_HPP