Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/Compression.h |
| Include | #include "Misc/Compression.h" |
Syntax
struct FCompression
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CompressMemory
(
FName FormatName, |
Thread-safe abstract compression routine. | |
| bool | CompressMemory
(
FName FormatName, |
Thunks to 64 bit CompressMemory, favor that. | |
| bool | CompressMemoryBound
(
FName InFormatName, |
Thread-safe abstract compression routine to query buffer requirements for a compression operation. | |
| int32 | CompressMemoryBound
(
FName FormatName, |
Thunks to the 64 bit, prefer that as this can only Fatal on error! | |
| bool | CompressMemoryIfWorthDecompressing
(
FName FormatName, |
32 bit thunk. This legacy function doens't separate bOutWasCompressed vs general compress failure and will return false in both cases. | |
| bool | CompressMemoryIfWorthDecompressing
(
FName FormatName, |
Same as CompressMemory but evaluates if the compression gain is worth the runtime decode time. | |
| FName | GetCompressionFormatFromDeprecatedFlags
(
ECompressionFlags DeprecatedFlags |
Deprecating this because we "should", but all internal references to these flags were deprecated in 4.21 so hopefully no one is using them anymore! | |
| FString | GetCompressorDDCSuffix
(
FName FormatName |
Returns a string which can be used to identify if a format has become out of date | |
| uint32 | GetCompressorVersion
(
FName FormatName |
Returns a version number for a specified format | |
| bool | GetMaximumCompressedSize
(
FName InFormatName, |
Thread-safe abstract compression routine to query maximum compressed size that could be made. | |
| int32 | GetMaximumCompressedSize
(
FName FormatName, |
Thunks to the 64 bit version, prefer that as this can only Fatal on error! | |
| bool | IsFormatValid
(
FName FormatName |
Checks to see if a format will be usable, so that a fallback can be used | |
| bool | UncompressMemory
(
FName FormatName, |
Thread-safe abstract decompression routine. | |
| bool | UncompressMemoryStream
(
FName FormatName, |
Wraps UncompressMemory to provide access with a IMemoryReadStream interface, attempting to avoid copying in to a contiguous buffer doe decompression if the format supports it. | |
| bool | VerifyCompressionFlagsValid
(
int32 InCompressionFlags |
Verifies if the passed in value represents valid compression flags |
Constants
| Name | Description |
|---|---|
| CompressionFormats | Mapping of Compression FNames to their compressor objects |
| CompressionFormatsCriticalSection | |
| CompressorDstBytes | Number of bytes after compression. Nubmer of bytes after compression. |
| CompressorSrcBytes | Number of bytes before compression. |
| CompressorTimeCycles | CompressionData is per-compressor data passed through this API and is interpreted by the codecs. |