Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Compression
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Compression/lz4hc.h |
| Include | #include "Compression/lz4hc.h" |
| Source | /Engine/Source/Runtime/Core/Private/Compression/lz4hc.cpp |
LZ4int LZ4_compress_HC
(
const char * src,
char * dst,
int srcSize,
int dstCapacity,
int compressionLevel
)
Remarks
- [LZ4compress_HC()](API\Runtime\Core\Compression\LZ4_compress_HC) : Compress data from
src_ intodst, using the powerful but slower "HC" algorithm.dst_ must be already allocated. Compression is guaranteed to succeed ifdstCapacity >= LZ4compressBound(srcSize) (see "lz4.h") Max supportedsrcSize_ value is LZ4_MAX_INPUT_SIZE (see "lz4.h")compressionLevel_ : any value between 1 and LZ4HC_CLEVEL_MAX will work. Values > LZ4HC_CLEVEL_MAX behave the same as LZ4HC_CLEVEL_MAX. - the number of bytes written into 'dst' or 0 if compression fails.