FPakFile

Pak file.

Windows
MacOS
Linux

Inheritance Hierarchy

FNoncopyable

FPakFile

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Syntax

class FPakFile : private FNoncopyable

Remarks

Pak file.

Constructors

Name Description

Public function

FPakFile

(
    FArchive* Archive
)

Creates a pak file using the supplied archive.

Public function

FPakFile

(
    IPlatformFile* LowerLevel,
    const TCHAR* Filename,
    bool bIsSigned,
    bool bLoadIndex
)

Creates a pak file using the supplied file handle.

Destructors

Name Description

Public function

~FPakFile()

Functions

Name Description

Public function

bool

 

Check()

Checks the validity of the pak data by reading out the data for every file in the pak

Public function Const

bool

 

DirectoryExists

(
    const TCHAR* InPath
)

Checks if a directory exists in pak file.

Public function Const

EFindResult

 

Find

(
    const FString& Filename,
    FPakEntry* OutEntry
)

Public function Const

const FPakDi...

 

FindDirectory

(
    const TCHAR* InPath
)

Finds a directory in pak file.

Public function Const

void

 

FindFilesAtPath

(
    ContainerType& OutFiles,
    const TCHAR* InPath,
    bool bIncludeFiles,
    bool bIncludeDirectories,
    bool bRecursive
)

Looks for files or directories within the pak file.

Public function

int32

 

GetCacheIndex()

Public function

ECacheType

 

GetCacheType()

Public function Const

const FStrin...

 

GetFilename()

Gets pak filename.

Public function Const

FName

 

GetFilenameName()

Public function Const

void

 

GetFilenames

(
    TArray< FString >& OutFileList
)

Public function

void

 

GetFilenamesInChunk

(
    const TArray< int32 >& InChunkIDs,
    TArray< FString >& OutFileList
)

Public function Const

const TMemor...

 

GetIndex()

Gets pak file index.

Public function Const

const FPakIn...

 

GetInfo()

Gets this pak file info.

Public function Const

const FStrin...

 

GetMountPoint()

Gets pak file mount point.

Public function Const

int32

 

GetNumFiles()

Gets the number of files in this pak.

Public function

FArchive ...

 

GetSharedReader

(
    IPlatformFile* LowerLevel
)

Gets shared pak file archive for given thread.

Public function Const

const FDateT...

 

GetTimestamp()

Gets this pak file's tiemstamp.

Public function

bool

 

GetUnderlyingCacheTrimDisabled()

Public function Const

bool

 

HasFilenames()

Returns whether the pak filenames are still resident in memory.

Public function Const

bool

 

HasShrunkPakEntries()

Returns whether the pak files list has been shrunk or not

Public function Const

bool

 

IsValid()

Checks if the pak file is valid.

Public function Static

void

 

MakeDirectoryFromPath

(
    FString& Path
)

Helper function to append '/' at the end of path.

Public function Const

bool

 

PassedSignatureChecks()

Checks if the pak has valid chunk signature checking data, and that the data passed the initial signing check

Public function

void

 

SetCacheIndex

(
    int32 InCacheIndex
)

Public function

void

 

SetCacheType

(
    ECacheType InCacheType
)

Public function

void

 

SetMountPoint

(
    const TCHAR* Path
)

Sets the pak file mount point.

Public function

void

 

SetUnderlyingCacheTrimDisabled

(
    bool InUnderlyingCacheTrimDisabled
)

Public function

bool

 

ShrinkPakEntriesMemoryUsage()

Lower memory usage by bit-encoding the pak file entry information.

Public function Const

int64

 

TotalSize()

Public function

bool

 

UnloadPakEntryFilenames

(
    TMap< uint64, FPakEntry >& CrossPa...,
    TArray< FString >* DirectoryRo...,
    bool bAllowRetries
)

Saves memory by hashing the filenames, if possible.

Classes

Name

Description

Public class

FFileIterator

Iterator class used to iterate over all files in pak.

Enums

Name

Description

Public enum

ECacheType

Pak files can share a cache or have their own

Public enum

EFindResult

Finds an entry in the pak file matching the given filename.

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