LZ4_compress_HC_destSize

[LZ4_compress_HC_destSize()](API\Runtime\Core\Compression\LZ4_compress_HC_destSize) : v1.9.0+ Will compress as much data as possible from `src_ to fit into `targetDstSize_ budget.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

LZ4int LZ4_compress_HC_destSize
(
    void * stateHC,
    const char * src,
    char * dst,
    int * srcSizePtr,
    int targetDstSize,
    int compressionLevel
)

Remarks

LZ4_compress_HC_destSize() : v1.9.0+ Will compress as much data as possible from src_ to fit into targetDstSize_ budget. Result is provided in 2 parts :

Returns

: the number of bytes written into 'dst' (necessarily <= targetDstSize) or 0 if compression fails. srcSizePtr_ : on success, &#42;srcSizePtr is updated to indicate how much bytes were read from src_