| FNoncopyable | ||
| FRefCountBase | ||
| IPakFile
|
Module |
|
Header |
/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
Include |
#include "IPlatformFilePak.h" |
class FPakFile :
private FNoncopyable,
public FRefCountBase,
public IPakFile
Pak file.
Name | Description | |
---|---|---|
|
FPakFile ( |
Creates a pak file using the supplied archive. |
|
FPakFile ( |
Creates a pak file using the supplied file handle. |
No destructors are accessible with public or protected access.
Name | Description | ||
---|---|---|---|
|
bool |
Check() |
Checks the validity of the pak data by reading out the data for every file in the pak |
|
bool |
DirectoryExistsInPruned ( |
Checks if a directory exists in pak file. |
|
void |
EncodePakEntriesIntoIndex ( |
|
|
Find |
||
|
const FPakEn... |
FindLocationFromIndex ( |
Lookup the FPakEntryLocation stored in the given PathHashIndex, return nullptr if not found |
|
const FPakEn... |
FindLocationFromIndex ( |
Lookup the FPakEntryLocation stored in the given DirectoryIndex, return nullptr if not found |
|
const FPakDi... |
FindPrunedDirectory ( |
Finds a directory in pak file. |
|
void |
FindPrunedFilesAtPath ( |
Looks for files or directories within the Pruned DirectoryIndex of the pak file. |
|
int32 |
GetCacheIndex() |
|
|
GetCacheType() |
||
|
const FStrin... |
GetFilename() |
Gets pak filename. |
|
GetFilenameName() |
||
|
const FPakIn... |
GetInfo() |
Gets this pak file info. |
|
bool |
GetIsMounted() |
|
|
const FStrin... |
GetMountPoint() |
Gets pak file mount point. |
|
GetPakEntry |
Returns the FPakEntry pointed to by the given FPakEntryLocation inside the given EncodedPakEntries or Files Can return Found or Deleted; if the FPakEntryLocation is invalid this function assumes the FPakEntry exists in this pack but as a deleted file If OutEntry is non-null, populates it with a copy of the FPakEntry found, or sets it to an FPakEntry with SetDeleteRecord(true) if not found |
|
|
void |
GetPrunedFilenames |
Returns the FullPath (includes Mount) Filename found in Pruned DirectoryIndex |
|
void |
GetPrunedFilenamesInChunk |
Returns the RelativePathFromMount Filename for every Filename found in the Pruned DirectoryIndex that points to a PakEntry in the given Chunk |
|
const TCHAR ... |
GetRelativeFilePathFromMountPointer |
Helper function to return Filename's relative path from the mount point. |
|
bool |
GetRelativePathFromMountInline |
Helper function to return Child's relative path from the mount point. |
|
FSharedPakRe... |
GetSharedReader ( |
Gets shared pak file archive for given thread. |
|
const FDateT... |
GetTimestamp() |
Gets this pak file's tiemstamp. |
|
bool |
GetUnderlyingCacheTrimDisabled() |
|
|
bool |
HasFilenames() |
Returns whether filenames currently exist in the DirectoryIndex for all files in the Pak. |
|
uint64 |
HashPath ( |
Hash the given full-path filename using the hash function used by FPakFiles, with the given FPakFile-specific seed, with version provided for legacy pak files that used different hash function |
|
bool |
IsPakKeepFullDirectory() |
Returns the global,const flag for whether the current process is allowing PakFiles to keep their entire DirectoryIndex (if it exists in the PakFile on disk) rather than pruning it |
|
bool |
IsPakWriteFullDirectoryIndex() |
Returns the global,const flag for whether UnrealPak should write a copy of the full DirectoryIndex to the PakFile |
|
bool |
IsPakWritePathHashIndex() |
Returns the global,const flag for whether UnrealPak should write a copy of the full PathHashIndex and Pruned DirectoryIndex to the PakFile |
|
bool |
IsPathInDirectoryFormat ( |
Helper function to check that the given string is in our directory format (ends with '/') |
|
bool |
IsValid() |
Checks if the pak file is valid. |
|
void |
MakeDirectoryFromPath ( |
Helper function to modify the given string to append '/' at the end of path to normalize directory names for hash and string compares |
|
PakPathCombine |
Helper function to join two path strings that are in the PakPath format |
|
|
bool |
PassedSignatureChecks() |
Checks if the pak has valid chunk signature checking data, and that the data passed the initial signing check |
|
void |
PruneDirectoryIndex ( |
Given a directory index, remove entries from it that are directed by ini to not have filenames kept at runtime. |
|
void |
ReadHashFromPayload ( |
FPakFile helper functions shared between the runtime and UnrealPak.exe. |
|
bool |
RecreatePakReaders ( |
Recreates the pak reader for each thread |
|
void |
ReleaseOldReaders ( |
Delete all readers that haven't been used in MaxAgeSeconds. |
|
void |
ReturnSharedReader ( |
Return a shared pak reader. Should only be called from the FSharedPakReader's destructor. |
|
void |
SetCacheIndex ( |
|
|
void |
SetCacheType ( |
|
|
void |
SetIsMounted ( |
|
|
void |
SetMountPoint ( |
Sets the pak file mount point. |
|
void |
SetUnderlyingCacheTrimDisabled ( |
|
|
bool |
SplitPathInline |
Helper function to split a PakDirectoryIndex-Formatted PathName into its PakDirectoryIndex-Formatted parent directory and the CleanFileName |
|
int64 |
TotalSize() |
Name | Description | ||
---|---|---|---|
|
int32 |
GetNumFiles() |
Gets the number of files in this pak. |
|
bool |
PakContains ( |
Return whether the Pak has an entry for the given FileName. |
|
const FStrin... |
PakGetMountPoint() |
|
|
int32 |
PakGetPakchunkIndex() |
|
|
const FStrin... |
PakGetPakFilename() |
IPakFile interface, for users of PakFiles that cannot have a dependency on this header. |
|
void |
PakVisitPrunedFilenames ( |
Calls the given Visitor on every FileName in the Pruned Directory Index. |
Name |
Description |
|
---|---|---|
|
FArchiveAndLastAccessTime |
|
|
FBaseIterator |
Base functionality for iterating over the DirectoryIndex. |
|
FFileIterator |
|
|
FFilenameIterator |
Iterator class used to iterate over just the files in the pak for which we have filenames. |
|
FIndexSettings |
|
|
FPakEntryIterator |
Iterator class for every FPakEntry in the FPakFile, but does not provide filenames unless the PakFile has an unpruned DirectoryIndex. |
|
FScopedPakDirectoryIndexAccess |
A ReadLock wrapper that must be used to prevent threading errors around any call to FindPrunedDirectory or internal uses of DirectoryIndex |
Name |
Description |
|
---|---|---|
|
ECacheType |
Pak files can share a cache or have their own |
|
EFindResult |
Finds an entry in the pak file matching the given filename. |
Name |
Description |
---|---|
FDirectoryIndex |
Index data that keeps an in-memory directoryname/filename tree to map a Filename to an FPakEntryLocation |
FPathHashIndex |
Index data that provides a map from the hash of a Filename to an FPakEntryLocation |
ReadNextEntryFunction |
Read a list of (Filename, FPakEntry) pairs from a provided enumeration, attempt to encode each one, store each one in the appropriate given encoded and/or unencoded array, and populate the given Directories to map each filename to the location for the FPakEntry |
Name |
Description |
---|---|
bSomePakNeedsPruning |
Global flag for whether a Pak has indicated it needs Pruning |