Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Compression/lz4.h |
Include |
#include "Compression/lz4.h" |
Source |
/Engine/Source/Runtime/Core/Private/Compression/lz4.cpp |
LZ4int LZ4_compress_destSize
(
const char * src,
char * dst,
int * srcSizePtr,
int targetDstSize
)
LZ4_compress_destSize() : Reverse the logic : compresses as much data as possible from 'src' buffer into already allocated buffer 'dst', of size >= 'targetDestSize'. This function either compresses the entire 'src' content into 'dst' if it's large enough, or fill 'dst' buffer completely with as much data as possible from 'src'.
acceleration parameter is fixed to "default". srcSizePtr : will be modified to indicate how many bytes where read from 'src' to fill 'dst'. New value is necessarily <= input value.
: Nb bytes written into 'dst' (necessarily <= targetDestSize) or 0 if compression fails.