![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MemoryChunkStore.h>
Static Public Member Functions | |
| static IMemoryChunkStore * | Create (int32 ChunkCount, IChunkEvictionPolicy *EvictionPolicy, IChunkStore *OverflowStore, IMemoryChunkStoreStat *MemoryChunkStoreStat, IChunkReferenceTracker *InOptionalChunkReferenceTracker) |
A factory for creating an IMemoryChunkStore instance.
|
static |
Creates an instance of a chunk store class that stores chunks in memory. When Put() is called and the store has >= ChunkCount entries, the EvictionPolicy will be used to select chunks which should be Put() into the OverflowStore instance, and removed from this store. If the EvictionPolicy allows it, the store will grow larger than ChunkCount. When Get() is called on a chunk that is not in this store, Remove() will be attempted on the OverflowStore instance, and the chunk will enter the memory store if it was successful.
| ChunkCount | The size of the store, at which point chunks will start being evicted based on the policy provided. |
| EvictionPolicy | Required ptr to an eviction policy that will be used to clean out the store, and evict data when full. |
| OverflowStore | Required ptr to an IChunkStore which will be used as an overflow for evicted chunks. |
| MemoryChunkStoreStat | Required ptr to the statistics class. |