2015-07-26 21:39:49 +00:00
|
|
|
#ifndef COMPRESSIONUTIL_H
|
|
|
|
#define COMPRESSIONUTIL_H
|
|
|
|
|
2018-12-12 05:50:46 +00:00
|
|
|
#include <Common/BasicTypes.h>
|
2017-05-04 18:18:52 +00:00
|
|
|
#include <Common/FileIO.h>
|
2017-04-01 05:42:41 +00:00
|
|
|
#include <Common/TString.h>
|
2015-07-26 21:39:49 +00:00
|
|
|
|
|
|
|
namespace CompressionUtil
|
|
|
|
{
|
2016-02-15 13:20:34 +00:00
|
|
|
// Decompression
|
2018-12-12 05:50:46 +00:00
|
|
|
bool DecompressZlib(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32 DstLen, uint32& rTotalOut);
|
|
|
|
bool DecompressLZO(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut);
|
|
|
|
bool DecompressSegmentedData(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32 DstLen);
|
2016-02-15 13:20:34 +00:00
|
|
|
|
|
|
|
// Compression
|
2018-12-12 05:50:46 +00:00
|
|
|
bool CompressZlib(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32 DstLen, uint32& rTotalOut);
|
|
|
|
bool CompressLZO(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut);
|
|
|
|
bool CompressSegmentedData(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut, bool IsZlib, bool AllowUncompressedSegments);
|
|
|
|
bool CompressZlibSegmented(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut, bool AllowUncompressedSegments);
|
|
|
|
bool CompressLZOSegmented(uint8 *pSrc, uint32 SrcLen, uint8 *pDst, uint32& rTotalOut, bool AllowUncompressedSegments);
|
2015-07-26 21:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // COMPRESSIONUTIL_H
|