/Engine/Source/Runtime/Core/Public/Misc/Compression.h
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. CompressMemory is expected to return true and write valid data even if it expanded bytes. Always check CompressedSize >= UncompressedSize and fall back to uncompressed, or use CompressMemoryIfWorthDecompressing
true if compression succeeds, false if it fails because CompressedBuffer was too small or other reasons
static bool CompressMemory ( [FName](API\Runtime\Core\UObject\FName) FormatName, void * CompressedBuffer, int32 & CompressedSize, const void * UncompressedBuffer, int32 UncompressedSize, ECompressionFlags Flags, int32 CompressionData )