![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IPlatformFilePak.h>
Public Types | |
| enum | { PakFile_Magic = 0x5A6F12E1 , MaxChunkDataSize = 64*1024 , CompressionMethodNameLen = 32 , MaxNumCompressionMethods =5 } |
| enum | { PakFile_Version_Initial = 1 , PakFile_Version_NoTimestamps = 2 , PakFile_Version_CompressionEncryption = 3 , PakFile_Version_IndexEncryption = 4 , PakFile_Version_RelativeChunkOffsets = 5 , PakFile_Version_DeleteRecords = 6 , PakFile_Version_EncryptionKeyGuid = 7 , PakFile_Version_FNameBasedCompressionMethod = 8 , PakFile_Version_FrozenIndex = 9 , PakFile_Version_PathHashIndex = 10 , PakFile_Version_Fnv64BugFix = 11 , PakFile_Version_Utf8PakDirectory = 12 , PakFile_Version_Last , PakFile_Version_Invalid , PakFile_Version_Latest = PakFile_Version_Last - 1 } |
Public Member Functions | |
| FPakInfo () | |
| int64 | GetSerializedSize (int32 InVersion=PakFile_Version_Latest) const |
| int64 | HasRelativeCompressedChunkOffsets () const |
| void | Serialize (FArchive &Ar, int32 InVersion) |
| int32 | GetCompressionMethodIndex (FName CompressionMethod) |
| FName | GetCompressionMethod (uint32 Index) const |
| TOptional< FName > | TryGetCompressionMethod (uint32 Index) const |
Public Attributes | |
| uint32 | Magic |
| int32 | Version |
| int64 | IndexOffset |
| int64 | IndexSize |
| FSHAHash | IndexHash |
| uint8 | bEncryptedIndex |
| FGuid | EncryptionKeyGuid |
| TArray< FName > | CompressionMethods |
Struct which holds pak file info (version, index offset, hash value).
Version numbers.
|
inline |
Constructor.
|
inline |
Gets the size of data serialized by this struct.
|
inline |
Serializes this struct.
| Ar | Archive to serialize data with. |
| uint8 FPakInfo::bEncryptedIndex |
Flag indicating if the pak index has been encrypted.
Compression methods used in this pak file (FNames, saved as FStrings)
| FGuid FPakInfo::EncryptionKeyGuid |
Encryption key guid. Empty if we should use the embedded key.
| FSHAHash FPakInfo::IndexHash |
SHA1 of the bytes in the index, used to check for data corruption when loading the index.
| int64 FPakInfo::IndexOffset |
Offset to pak file index.
| int64 FPakInfo::IndexSize |
Size (in bytes) of pak file index.
| uint32 FPakInfo::Magic |
Pak file magic value.
| int32 FPakInfo::Version |
Pak file version.