engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FPakEntry结构体 参考

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

#include <IPlatformFilePak.h>

Public 成员函数

 FPakEntry ()
 Constructor.
 
int64 GetSerializedSize (int32 Version) const
 Gets the size of data serialized by this struct. 更多...
 
bool operator!= (const FPakEntry &B) const
 Compares two FPakEntry structs.
 
bool operator== (const FPakEntry &B) const
 Compares two FPakEntry structs.
 
void Serialize (FArchive &Ar, int32 Version)
 Serializes FPakEntry struct. 更多...
 

静态 Public 成员函数

static bool VerifyPakEntriesMatch (const FPakEntry &FileEntryA, const FPakEntry &FileEntryB)
 Verifies two entries match to check for corruption. 更多...
 

Public 属性

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 Hash [20]
 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. 更多...
 

详细描述

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.

成员函数说明

◆ GetSerializedSize()

int64 FPakEntry::GetSerializedSize ( int32  Version) const
inline

Gets the size of data serialized by this struct.

返回
Serialized data size.

◆ Serialize()

void FPakEntry::Serialize ( FArchive &  Ar,
int32  Version 
)
inline

Serializes FPakEntry struct.

参数
ArArchive to serialize data with.
EntryData to serialize.

◆ VerifyPakEntriesMatch()

static bool FPakEntry::VerifyPakEntriesMatch ( const FPakEntry &  FileEntryA,
const FPakEntry &  FileEntryB 
)
static

Verifies two entries match to check for corruption.

参数
FileEntryAEntry 1.
FileEntryBEntry 2.

类成员变量说明

◆ Verified

bool FPakEntry::Verified
mutable

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

It is not serialized.


该结构体的文档由以下文件生成: