Navigation
API > API/Runtime > API/Runtime/PakFile
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 | FPakEntry |
| Type | struct |
| Header File | /Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
| Include Path | #include "IPlatformFilePak.h" |
Syntax
struct FPakEntry
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPakEntry() |
Constructor. | IPlatformFilePak.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Flag_Deleted | const uint8 | IPlatformFilePak.h | |
| Flag_Encrypted | const uint8 | IPlatformFilePak.h | |
| Flag_None | const uint8 | IPlatformFilePak.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CompressionBlocks | TArray< FPakCompressedBlock > | Array of compression blocks that describe how to decompress this pak entry. | IPlatformFilePak.h | |
| CompressionBlockSize | uint32 | Size of a compressed block in the file. | IPlatformFilePak.h | |
| CompressionMethodIndex | uint32 | Index into the compression methods in this pakfile. | IPlatformFilePak.h | |
| Flags | uint8 | Pak entry flags. | IPlatformFilePak.h | |
| Hash | uint8 | File SHA1 value. | IPlatformFilePak.h | |
| Offset | int64 | Offset into pak file where the file is stored. | IPlatformFilePak.h | |
| Size | int64 | Serialized file size. | IPlatformFilePak.h | |
| UncompressedSize | int64 | Uncompressed file size. | IPlatformFilePak.h | |
| Verified | bool | Flag is set to true when FileHeader has been checked against PakHeader. It is not serialized. | IPlatformFilePak.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetFlag
(
uint8 InFlag |
IPlatformFilePak.h | ||
int64 GetSerializedSize
(
int32 Version |
Gets the size of data serialized by this struct. | IPlatformFilePak.h | |
bool IndexDataEquals
(
const FPakEntry& B |
IPlatformFilePak.h | ||
bool IsDeleteRecord() |
IPlatformFilePak.h | ||
bool IsEncrypted() |
IPlatformFilePak.h | ||
void Reset() |
IPlatformFilePak.h | ||
void Serialize
(
FArchive& Ar, |
Serializes FPakEntry struct. | IPlatformFilePak.h | |
void SetDeleteRecord
(
bool bDeleteRecord |
IPlatformFilePak.h | ||
void SetEncrypted
(
bool bEncrypted |
IPlatformFilePak.h | ||
void SetFlag
(
uint8 InFlag, |
IPlatformFilePak.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Verifies two entries match to check for corruption. | IPlatformFilePak.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FPakEntry& B |
Compares two FPakEntry structs. | IPlatformFilePak.h | |
bool operator==
(
const FPakEntry& B |
Compares two FPakEntry structs. | IPlatformFilePak.h |