Module |
|
Header |
/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
Include |
#include "IPlatformFilePak.h" |
struct FPakEntry
Struct holding info about a single file stored in pak file.
CHANGE THIS FILE RARELY AND WITH GREAT CARE. MODIFICATIONS WILL RESULT IN EVERY PAK ENTRY IN AN EXISTING INSTALL HAVING TO TO BE PATCHED.
On Fortnite that would be 15GB of data (250k pak entries * 64kb patch block) just to add/change/remove a field.
Name | Description | ||
---|---|---|---|
|
CompressionBlocks |
Array of compression blocks that describe how to decompress this pak entry. |
|
|
uint32 |
CompressionBlockSize |
Size of a compressed block in the file. |
|
uint32 |
CompressionMethodIndex |
Index into the compression methods in this pakfile. |
|
uint8 |
Flags |
Pak entry flags. |
|
uint8[20] |
Hash |
File SHA1 value. |
|
int64 |
Offset |
Offset into pak file where the file is stored. |
|
int64 |
Size |
Serialized file size. |
|
int64 |
UncompressedSize |
Uncompressed file size. |
|
bool |
Verified |
Flag is set to true when FileHeader has been checked against PakHeader. It is not serialized. |
Name | Description | |
---|---|---|
|
FPakEntry() |
Constructor. |
Name | Description | ||
---|---|---|---|
|
bool |
GetFlag ( |
|
|
int64 |
GetSerializedSize ( |
Gets the size of data serialized by this struct. |
|
bool |
IndexDataEquals ( |
|
|
bool |
IsDeleteRecord() |
|
|
bool |
IsEncrypted() |
|
|
void |
Reset() |
|
|
void |
Serialize ( |
Serializes FPakEntry struct. |
|
void |
SetDeleteRecord ( |
|
|
void |
SetEncrypted ( |
|
|
void |
SetFlag ( |
|
|
bool |
VerifyPakEntriesMatch |
Verifies two entries match to check for corruption. |
Name | Description | ||
---|---|---|---|
|
bool |
operator!= ( |
Compares two FPakEntry structs. |
|
bool |
operator== ( |
Compares two FPakEntry structs. |
Name |
Description |
---|---|
Flag_Deleted |
|
Flag_Encrypted |
|
Flag_None |