Navigation
Unreal Engine C++ API Reference > Runtime > PakFile
References
Module | PakFile |
Header | /Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
Include | #include "IPlatformFilePak.h" |
Syntax
struct FPakEntry
Remarks
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.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< FPakCompressedBlock > | 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. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FPakEntry () |
Constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | ||
![]() ![]() |
int64 | GetSerializedSize
(
int32 Version |
Gets the size of data serialized by this struct. |
![]() ![]() |
bool | IndexDataEquals
(
const FPakEntry& B |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | IsEncrypted () |
|
![]() |
void | Reset () |
|
![]() |
void | Serializes FPakEntry struct. | |
![]() |
void | SetDeleteRecord
(
bool bDeleteRecord |
|
![]() |
void | SetEncrypted
(
bool bEncrypted |
|
![]() |
void | ||
![]() ![]() |
bool | VerifyPakEntriesMatch
(
const FPakEntry& FileEntryA, |
Verifies two entries match to check for corruption. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FPakEntry& B |
Compares two FPakEntry structs. |
![]() ![]() |
bool | operator==
(
const FPakEntry& B |
Compares two FPakEntry structs. |
Constants
Name | Description |
---|---|
Flag_Deleted | |
Flag_Encrypted | |
Flag_None |