2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace ZCompression {
|
|
|
|
int32_t GetMaxCompressedLength(int32_t nLenSrc);
|
|
|
|
|
2022-12-20 22:48:58 +00:00
|
|
|
int32_t GZipCompress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst);
|
2021-12-05 17:54:36 +00:00
|
|
|
int32_t Compress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst);
|
|
|
|
|
|
|
|
int32_t Decompress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst, int32_t& nErr);
|
2022-11-01 18:21:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Max size of an inflated sd0 zlib chunk
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
constexpr uint32_t MAX_SD0_CHUNK_SIZE = 1024 * 256;
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
2022-07-16 23:24:16 +00:00
|
|
|
|