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 decompression routine. Uncompresses memory from compressed buffer and writes it to uncompressed buffer. UncompressedSize is expected to be the exact size of the data after decompression.
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 to decompress |
UncompressedBuffer |
Buffer containing uncompressed data |
UncompressedSize |
Size of uncompressed data in bytes |
CompressedBuffer |
Buffer compressed data is going to be read from |
CompressedSize |
Size of CompressedBuffer data in bytes |
bIsSourcePadded |
Whether the source memory is padded with a full cache line at the end |