![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IasCache.h>
Inheritance diagram for UE::IoStore::IIasCache:Public Member Functions | |
| virtual | ~IIasCache ()=default |
| virtual void | Abandon ()=0 |
| virtual void | Drop ()=0 |
| virtual bool | ContainsChunk (const FIoHash &Key) const =0 |
| virtual EIoErrorCode | Get (const FIoHash &Key, FIoBuffer &OutData)=0 |
| virtual void | Materialize (const FIoHash &Key, FIoBuffer &Dest, EIoErrorCode &Status, UE::Tasks::FTaskEvent DoneEvent)=0 |
| virtual void | Cancel (FIoBuffer &GivenDest)=0 |
| virtual FIoStatus | Put (const FIoHash &Key, FIoBuffer &Data)=0 |
| virtual FIoStatus | Evict (const FIoHash &Key)=0 |
Cache for binary blobs with a 20 byte cache key.
|
virtualdefault |
Deletes the IAS object, dropping all data persisted to disk and releasing OS resources. As this also deletes the object thus any unique pointers should be released prior to abandonment; TUniquePtr->Release()->Abandon(). Be sure to cancel and collect any Get() tasks beforehand.
Implemented in UE::IoStore::FJournaledCache.
Cancels a previously request to Materialize(). Note that the materialize already can still complete as the read operation may already be in flight. If the cancel succeeds, the materialize's DoneEvent is not triggered.
Implemented in UE::IoStore::FJournaledCache.
Returns whether the specified cache key is present in the cache.
Implemented in UE::IoStore::FJournaledCache.
Clears out the cache and resets it back to the default state.
Implemented in UE::IoStore::FJournaledCache.
Evict an item from the cache. For example it might be corrupt
Implemented in UE::IoStore::FJournaledCache.
|
pure virtual |
Get the chunk associated with the specified cache key. If the data is already in memory it is return in OutData. Otherwise the returned status indicates if the key can be materialized or if it does not exist
Implemented in UE::IoStore::FJournaledCache.
|
pure virtual |
Materializes a cached items data from disk. The data is read into Dest so Dest must remain valid throughout. The result of the disk read is returned in Status (same lifetime needs as Dest). DoneEvent is triggered when the read succeeds, is not found, or if an IO error occurred.
Implemented in UE::IoStore::FJournaledCache.
|
pure virtual |
Insert a new chunk into the cache.
Implemented in UE::IoStore::FJournaledCache.