FPakEntry

Struct holding info about a single file stored in pak file.

Windows
MacOS
Linux

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

Name Description

Public variable

TMemoryImageArr...

 

CompressionBlocks

Array of compression blocks that describe how to decompress this pak entry.

Public variable

uint32

 

CompressionBlockSize

Size of a compressed block in the file.

Public variable

uint32

 

CompressionMethodIndex

Index into the compression methods in this pakfile.

Public variable

uint8

 

Flags

Pak entry flags.

Public variable

uint8[20]

 

Hash

File SHA1 value.

Public variable

int64

 

Offset

Offset into pak file where the file is stored.

Public variable

int64

 

Size

Serialized file size.

Public variable

int64

 

UncompressedSize

Uncompressed file size.

Public variable

bool

 

Verified

Flag is set to true when FileHeader has been checked against PakHeader. It is not serialized.

Constructors

Name Description

Public function

FPakEntry()

Constructor.

Functions

Name Description

Public function Const

bool

 

GetFlag

(
    uint8 InFlag
)

Public function Const

int64

 

GetSerializedSize

(
    int32 Version
)

Gets the size of data serialized by this struct.

Public function Const

const FTypeL...

 

GetTypeLayout()

Public function Const

bool

 

IsDeleteRecord()

Public function Const

bool

 

IsEncrypted()

Public function

void

 

Serialize

(
    FArchive& Ar,
    int32 Version
)

Serializes FPakEntry struct.

Public function

void

 

SetDeleteRecord

(
    bool bDeleteRecord
)

Public function

void

 

SetEncrypted

(
    bool bEncrypted
)

Public function

void

 

SetFlag

(
    uint8 InFlag,
    bool bValue
)

Public function Static

FTypeLayoutD...

 

StaticGetTypeLayout()

Public function Static

bool

 

VerifyPakEntriesMatch

(
    const FPakEntry& FileEntryA,
    const FPakEntry& FileEntryB
)

Verifies two entries match to check for corruption.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FPakEntry& B
)

Compares two FPakEntry structs.

Public function Const

bool

 

operator==

(
    const FPakEntry& B
)

Compares two FPakEntry structs.

Classes

Typedefs

Name

Description

DerivedType

InternalBaseType

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss