FPakInfo

Struct which holds pak file info (version, index offset, hash value).

Windows
MacOS
Linux

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

Name Description

Public variable

uint8

 

bEncryptedIndex

Flag indicating if the pak index has been encrypted.

Public variable

TArray< FName >

 

CompressionMethods

Compression methods used in this pak file (FNames, saved as FStrings)

Public variable

FGuid

 

EncryptionKeyGuid

Encryption key guid. Empty if we should use the embedded key.

Public variable

FSHAHash

 

IndexHash

SHA1 of the bytes in the index, used to check for data corruption when loading the index.

Public variable

int64

 

IndexOffset

Offset to pak file index.

Public variable

int64

 

IndexSize

Size (in bytes) of pak file index.

Public variable

uint32

 

Magic

Pak file magic value.

Public variable

int32

 

Version

Pak file version.

Constructors

Name Description

Public function

FPakInfo()

Constructor.

Functions

Name Description

Public function Const

FName

 

GetCompressionMethod

(
    uint8 Index
)

Public function

uint8

 

GetCompressionMethodIndex

(
    FName CompressionMethod
)

Public function Const

int64

 

GetSerializedSize

(
    int32 InVersion
)

Gets the size of data serialized by this struct.

Public function Const

int64

 

HasRelativeCompressedChunkOffsets()

Public function

void

 

Serialize

(
    FArchive& Ar,
    int32 InVersion
)

Serializes this struct.

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.

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