Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/Compression.h |
Include |
#include "Misc/Compression.h" |
Source |
/Engine/Source/Runtime/Core/Private/Misc/Compression.cpp |
Thread-safe abstract compression routine. Compresses memory from uncompressed buffer and writes it to compressed buffer. Updates CompressedSize with size of compressed data. Compression controlled by the passed in flags.
true if compression succeeds, false if it fails because CompressedBuffer was too small or other reasons
Parameter |
Description |
---|---|
Flags |
Flags to control what method to use and optionally control memory vs speed |
CompressedBuffer |
Buffer compressed data is going to be written to |
CompressedSize |
[in/out] Size of CompressedBuffer, at exit will be size of compressed data |
UncompressedBuffer |
Buffer containing uncompressed data |
UncompressedSize |
Size of uncompressed data in bytes |
BitWindow |
Bit window to use in compression |