FPakFile::UnloadPakEntryFilenames

Saves memory by hashing the filenames, if possible.

Windows
MacOS
Linux

References

Module

PakFile

Header

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

Include

#include "IPlatformFilePak.h"

Source

/Engine/Source/Runtime/PakFile/Private/IPlatformFilePak.cpp

Syntax

bool UnloadPakEntryFilenames
(
    TMap< uint64, FPakEntry > & CrossPakCollisionChecker,
    TArray< FString > * DirectoryRootsToKeep,
    bool bAllowRetries
)

Remarks

Saves memory by hashing the filenames, if possible. After this process, wildcard scanning of pak entries can no longer be performed. Returns TRUE if the process successfully unloaded filenames from this pak

Parameters

Parameter

Description

CrossPakCollisionChecker

A map of hash->fileentry records encountered during filename unloading on other pak files. Used to detect collisions with entries in other pak files.

DirectoryRootsToKeep

An array of strings in wildcard format that specify whole directory structures of filenames to keep in memory for directory iteration to work.

bAllowRetries

If a collision is encountered, change the intial seed and try again a fixed number of times before failing

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