![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IndexedCacheStorage.h>
Inheritance diagram for Experimental::IIndexedCacheStorage:Public Member Functions | |
| virtual bool | SupportsIndexedCacheStorage ()=0 |
| virtual uint32 | GetNumIndexedCacheStorages ()=0 |
| virtual bool | CreateCacheStorage (uint64 InRequestNumberOfBytes, int32 CacheStorageIndex)=0 |
| virtual bool | DestroyCacheStorage (int32 InCacheStorageIndex)=0 |
| virtual void | EnumerateCacheStorages (TArray< int32 > &OutCacheStorageIndices)=0 |
| virtual void | GetCacheStorageInfo (int32 InCacheStorageIndex, uint64 &OutCacheStorageDataSize, uint64 &OutCacheStorageJournalSize)=0 |
| virtual void | GetCacheStorageMountPath (FString &OutPlatformMountPath, const FString &InMountName)=0 |
| virtual bool | MountCacheStorage (FString &OutPlatformMountPath, int32 InCacheStorageIndex, const FString &InMountName)=0 |
| virtual void | UnmountCacheStorage (const FString &InMountName)=0 |
| virtual uint64 | GetPersistentDownloadDirEarlyStartupSize ()=0 |
| virtual uint64 | GetCacheStorageJournalSize (uint64 CacheDataSize, uint32 CacheIndex)=0 |
Static Public Member Functions | |
| static IIndexedCacheStorage & | Get () |
| static IIndexedCacheStorage & | GetOrCreateIndexedCacheStorage () |
Interface for managing cache storages: some platforms may store user data in different cache storages that may be created / destroyed This allows the title to manage its disk space with a finer granularity. The data put in these caches need to be re-generated/re-obtained if needed.
|
pure virtual |
Requests a new indexed cache entry, capable of holding up to RequestNumberOfBytes.
| InRequestNumberOfBytes | number of bytes this entry needs to hold |
| CacheStorageIndex | - the index of the entry to create |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Destroy an indexed cache entry.
| InCacheStorageIndex | - the index of the entry |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Enumerate existing cache entries.
| OutCacheStorageIndices | - indices of existing cache storages |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
static |
|
pure virtual |
Queries cache storage.
| InCacheStorageIndex | - the index of the cache |
| OutCacheStorageSize | - How large the cache storage is |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Gets the platform mount path for a cached storage based on its generic Name
| OutPlatformMountPath | - the platform specific mount path |
| InMountName | - the generic mount name |
Implemented in Experimental::FGenericIndexedCacheStorage.
Retrieve the number of indexed cache entries available on the platform.
Implemented in Experimental::FGenericIndexedCacheStorage.
|
static |
|
pure virtual |
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Mounts a cache storage so file operations can be done
| OutPlatformMountPath | - the platform specific mount path. Same name as the one returned by GetCacheStorageMountPath |
| InCacheStorageIndex | - the index of the cache |
| InMountName | - the generic mount name |
Implemented in Experimental::FGenericIndexedCacheStorage.
Check if indexed cache storage is available on the current platform.
Implemented in Experimental::FGenericIndexedCacheStorage.
|
pure virtual |
Unmounts a cache storage
| InMountName | - the generic mount name |
Implemented in Experimental::FGenericIndexedCacheStorage.