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 |
LZ4LZ4_streamHC_t * LZ4_initStreamHC
(
void * buffer,
size_t size
)
Remarks
LZ4_streamHC_t : This structure allows static allocation of LZ4 HC streaming state. This can be used to allocate statically on stack, or as part of a larger structure.
Such state must be initialized using LZ4_initStreamHC() before first use.
Note that invoking LZ4_initStreamHC() is not required when the state was created using LZ4_createStreamHC() (which is recommended). Using the normal builder, a newly created state is automatically initialized.
Static allocation shall only be used in combination with static linking. LZ4_initStreamHC() : v1.9.0+ Required before first use of a statically allocated LZ4_streamHC_t. Before v1.9.0 : use LZ4_resetStreamHC() instead