Navigation
API > API/Runtime > API/Runtime/PakFile
References
| Module | PakFile |
| Header | /Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
| Include | #include "IPlatformFilePak.h" |
Syntax
struct FPakInfo
Remarks
Struct which holds pak file info (version, index offset, hash value).
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8 | bEncryptedIndex | Flag indicating if the pak index has been encrypted. | |
| TArray< FName > | CompressionMethods | Compression methods used in this pak file (FNames, saved as FStrings) | |
| FGuid | EncryptionKeyGuid | Encryption key guid. Empty if we should use the embedded key. | |
| FSHAHash | IndexHash | SHA1 of the bytes in the index, used to check for data corruption when loading the index. | |
| int64 | IndexOffset | Offset to pak file index. | |
| int64 | IndexSize | Size (in bytes) of pak file index. | |
| uint32 | Magic | Pak file magic value. | |
| int32 | Version | Pak file version. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPakInfo () |
Constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | GetCompressionMethod
(
uint32 Index |
||
| int32 | GetCompressionMethodIndex
(
FName CompressionMethod |
||
| int64 | GetSerializedSize
(
int32 InVersion |
Gets the size of data serialized by this struct. | |
| int64 | |||
| void | Serializes this struct. | ||
| TOptional< FName > | TryGetCompressionMethod
(
uint32 Index |
Constants
| Name | Description |
|---|---|
| CompressionMethodNameLen | Length of a compression format name |
| MaxChunkDataSize | Size of cached data. |
| MaxNumCompressionMethods | Number of allowed different methods |
| PakFile_Magic | Magic number to use in header |
| PakFile_Version_CompressionEncryption | Version numbers. |
| PakFile_Version_DeleteRecords | Version numbers. |
| PakFile_Version_EncryptionKeyGuid | Version numbers. |
| PakFile_Version_FNameBasedCompressionMethod | Version numbers. |
| PakFile_Version_Fnv64BugFix | Version numbers. |
| PakFile_Version_FrozenIndex | Version numbers. |
| PakFile_Version_IndexEncryption | Version numbers. |
| PakFile_Version_Initial | Version numbers. |
| PakFile_Version_Invalid | Version numbers. |
| PakFile_Version_Last | Version numbers. |
| PakFile_Version_Latest | Version numbers. |
| PakFile_Version_NoTimestamps | Version numbers. |
| PakFile_Version_PathHashIndex | Version numbers. |
| PakFile_Version_RelativeChunkOffsets | Version numbers. |