LZ4_sizeofState

[LZ4_compress_fast_extState()](API\Runtime\Core\Compression\LZ4_compress_fast_extState) : Same as [LZ4_compress_fast()](API\Runtime\Core\Compression\LZ4_compress_fast), using an externally allocated memory space for its state.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Compression/lz4.h

Include

#include "Compression/lz4.h"

Source

/Engine/Source/Runtime/Core/Private/Compression/lz4.cpp

Syntax

LZ4int LZ4_sizeofState()

Remarks

LZ4_compress_fast_extState() : Same as LZ4_compress_fast(), using an externally allocated memory space for its state. Use LZ4_sizeofState() to know how much memory must be allocated, and allocate it on 8-bytes boundaries (using malloc()_ typically). Then, provide this buffer as void* state_ to compression function.