![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| void | Write (const FMutableMemoryView HeaderView) const |
| void | ByteSwap () |
| bool | TryGetCompressParameters (ECompressedBufferCompressor &OutCompressor, ECompressedBufferCompressionLevel &OutCompressionLevel, uint64 &OutBlockSize) const |
Static Public Member Functions | |
| static bool | IsValid (const FCompositeBuffer &CompressedData) |
| static bool | IsValid (const FSharedBuffer &CompressedData) |
| static FHeader | Read (const FCompositeBuffer &CompressedData) |
| static uint32 | CalculateCrc32 (const FMemoryView HeaderView) |
Public Attributes | |
| uint32 | Magic = ExpectedMagic |
| uint32 | Crc32 = 0 |
| EMethod | Method = EMethod::None |
| uint8 | Compressor = 0 |
| uint8 | CompressionLevel = 0 |
| uint8 | BlockSizeExponent = 0 |
| uint32 | BlockCount = 0 |
| uint64 | TotalRawSize = 0 |
| uint64 | TotalCompressedSize = 0 |
| FBlake3Hash | RawHash |
Static Public Attributes | |
| static constexpr uint32 | ExpectedMagic = 0xb7756362 |
Header used on every compressed buffer. Always stored in big-endian format.
|
inline |
|
inlinestatic |
Calculate the CRC-32 from a view of a header including any method-specific header data.
|
static |
Checks validity of the buffer based on the magic number, method, and CRC-32.
|
inlinestatic |
|
inlinestatic |
Read a header from a buffer that is at least sizeof(FHeader) without any validation.
|
inline |
|
inline |
Write a header to a memory view that is at least sizeof(FHeader).
| HeaderView | View of the header to write, including any method-specific header data. |
| uint32 UE::CompressedBuffer::Private::FHeader::BlockCount = 0 |
The number of blocks that follow the header.
| uint8 UE::CompressedBuffer::Private::FHeader::BlockSizeExponent = 0 |
The power of two size of every uncompressed block except the last. Size is 1 << BlockSizeExponent.
| uint8 UE::CompressedBuffer::Private::FHeader::CompressionLevel = 0 |
The method-specific compression level used to compress the buffer.
| uint8 UE::CompressedBuffer::Private::FHeader::Compressor = 0 |
The method-specific compressor used to compress the buffer.
| uint32 UE::CompressedBuffer::Private::FHeader::Crc32 = 0 |
A CRC-32 used to check integrity of the buffer. Uses the polynomial 0x04c11db7.
| uint32 UE::CompressedBuffer::Private::FHeader::Magic = ExpectedMagic |
A magic number to identify a compressed buffer. Always 0xb7756362.
| EMethod UE::CompressedBuffer::Private::FHeader::Method = EMethod::None |
The method used to compress the buffer. Affects layout of data following the header.
| FBlake3Hash UE::CompressedBuffer::Private::FHeader::RawHash |
The hash of the uncompressed data.
| uint64 UE::CompressedBuffer::Private::FHeader::TotalCompressedSize = 0 |
The total size of the compressed data including the header.
| uint64 UE::CompressedBuffer::Private::FHeader::TotalRawSize = 0 |
The total size of the uncompressed data.