|
| enum class | ECacheType : uint8 |
| | Pak files can share a cache or have their own
|
| |
| enum class | EFindResult : uint8 |
| | Finds an entry in the pak file matching the given filename. 更多...
|
| |
|
typedef TMap< FString, FPakDirectory > | FDirectoryIndex |
| | Index data that keeps an in-memory directoryname/filename tree to map a Filename to an FPakEntryLocation
|
| |
|
typedef TMap< uint64, FPakEntryLocation > | FPathHashIndex |
| | Index data that provides a map from the hash of a Filename to an FPakEntryLocation
|
| |
| typedef TFunction< FPakEntryPair &()> | 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 更多...
|
| |
|
| bool | Check () |
| | Checks the validity of the pak data by reading out the data for every file in the pak 更多...
|
| |
| bool | DirectoryExistsInPruned (const TCHAR *InPath) const |
| | Checks if a directory exists in pak file. 更多...
|
| |
| const FPakDirectory * | FindDirectory (const TCHAR *InPath) const |
| | Finds a directory in pak file. 更多...
|
| |
| template<class ContainerType > |
| void | FindPrunedFilesAtPath (ContainerType &OutFiles, const TCHAR *InPath, bool bIncludeFiles=true, bool bIncludeDirectories=false, bool bRecursive=false) const |
| | Looks for files or directories within the Pruned DirectoryIndex of the pak file. 更多...
|
| |
| | FPakFile (IPlatformFile *LowerLevel, const TCHAR *Filename, bool bIsSigned, bool bLoadIndex=true) |
| | Creates a pak file using the supplied file handle. 更多...
|
| |
| const FString & | GetFilename () const |
| | Gets pak filename. 更多...
|
| |
| const TMap< FString, FPakDirectory > & | GetIndex () const |
| | Gets pak file index. 更多...
|
| |
| const FPakInfo & | GetInfo () const |
| | Gets this pak file info. 更多...
|
| |
| const FString & | GetMountPoint () const |
| | Gets pak file mount point. 更多...
|
| |
|
virtual int32 | GetNumFiles () const override |
| | Gets the number of files in this pak.
|
| |
|
void | GetPrunedFilenames (TArray< FString > &OutFileList) const |
| | Returns the FullPath (includes Mount) Filename found in Pruned DirectoryIndex
|
| |
|
void | GetPrunedFilenamesInChunk (const TArray< int32 > &InChunkIDs, TArray< FString > &OutFileList) const |
| | Returns the RelativePathFromMount Filename for every Filename found in the Pruned DirectoryIndex that points to a PakEntry in the given Chunk
|
| |
| FArchive * | GetSharedReader (IPlatformFile *LowerLevel) |
| | Gets shared pak file archive for given thread. 更多...
|
| |
| const FDateTime & | GetTimestamp () const |
| | Gets this pak file's tiemstamp. 更多...
|
| |
| bool | HasFilenames () const |
| | Returns whether filenames currently exist in the DirectoryIndex for all files in the Pak. 更多...
|
| |
| bool | IsValid () const |
| | Checks if the pak file is valid. 更多...
|
| |
| bool | PassedSignatureChecks () const |
| | Checks if the pak has valid chunk signature checking data, and that the data passed the initial signing check 更多...
|
| |
|
bool | RecreatePakReaders (IPlatformFile *LowerLevel) |
| | Recreates the pak reader for each thread
|
| |
| void | SetMountPoint (const TCHAR *Path) |
| | Sets the pak file mount point. 更多...
|
| |
| virtual | ~FPakFile () |
| | Creates a pak file using the supplied archive. 更多...
|
| |
|
|
static const FPakEntryLocation * | FindLocationFromIndex (const FString &FullPath, const FString &MountPoint, const FDirectoryIndex &DirectoryIndex) |
| | Lookup the FPakEntryLocation stored in the given DirectoryIndex, return nullptr if not found
|
| |
|
static const FPakEntryLocation * | FindLocationFromIndex (const FString &FullPath, const FString &MountPoint, const FPathHashIndex &PathHashIndex, uint64 PathHashSeed, int32 PakFileVersion) |
| | Lookup the FPakEntryLocation stored in the given PathHashIndex, return nullptr if not found
|
| |
|
static EFindResult | GetPakEntry (const FPakEntryLocation &FPakEntryLocation, FPakEntry *OutEntry, const TArray< uint8 > &EncodedPakEntries, const TArray< FPakEntry > &Files, const FPakInfo &Info) |
| | 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
|
| |
| static const TCHAR * | GetRelativeFilePathFromMountPointer (const FString &Child, const FString &MountPoint) |
| | Helper function to return Filename's relative path from the mount point. 更多...
|
| |
| static bool | GetRelativePathFromMountInline (FString &Child, const FString &MountPoint) |
| | Helper function to return Child's relative path from the mount point. 更多...
|
| |
|
static uint64 | HashPath (const TCHAR *RelativePathFromMount, uint64 Seed, int32 PakFileVersion) |
| | 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
|
| |
| static void | PruneDirectoryIndex (FDirectoryIndex &InOutDirectoryIndex, FDirectoryIndex *PrunedDirectoryIndex, const FString &MountPoint) |
| | Given a directory index, remove entries from it that are directed by ini to not have filenames kept at runtime. 更多...
|
| |
|
static bool | SplitPathInline (FString &InOutPath, FString &OutFilename) |
| | Helper function to split a PakDirectoryIndex-Formatted PathName into its PakDirectoryIndex-Formatted parent directory and the CleanFileName
|
| |
| static const TCHAR * FPakFile::GetRelativeFilePathFromMountPointer |
( |
const FString & |
Child, |
|
|
const FString & |
MountPoint |
|
) |
| |
|
inlinestatic |
Helper function to return Filename's relative path from the mount point.
Returns null if Child is not equal to MountPoint and is not a child path under MountPoint, else returns pointer to the offset within Child after the MountPoint. If child equals MountPoint, returns null; The MountPoint itself is not a valid Filename, since Filenames must have non-zero length and are added on to the MountPoint.
| static bool FPakFile::GetRelativePathFromMountInline |
( |
FString & |
Child, |
|
|
const FString & |
MountPoint |
|
) |
| |
|
inlinestatic |
Helper function to return Child's relative path from the mount point.
Returns false if Child is not equal to MountPoint and is not a child path under MountPoint, else returns true. Edits Child only if returning true, setting it to the relative path. If child equals MountPoint, returns true and sets Child to the relative path to the MountPoint, which is "/"
Given a directory index, remove entries from it that are directed by ini to not have filenames kept at runtime.
InOutDirectoryIndex - The full index from which to potentially remove entries OutDirectoryIndex - If null, InOutDirectoryIndex will have pruned entries removed. If non-null, InOutDirectoryIndex will not be modified, and PrunedDirectoryIndex will have kept values added. MountPoint The mount point for the pak containing the index, used to provide the fullpath for filenames in the DirectoryIndex for comparison against paths in ini