UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BuildPatchServices::FMemoryChunkStoreFactory Class Reference

#include <MemoryChunkStore.h>

Static Public Member Functions

static IMemoryChunkStoreCreate (int32 ChunkCount, IChunkEvictionPolicy *EvictionPolicy, IChunkStore *OverflowStore, IMemoryChunkStoreStat *MemoryChunkStoreStat, IChunkReferenceTracker *InOptionalChunkReferenceTracker)
 

Detailed Description

A factory for creating an IMemoryChunkStore instance.

Member Function Documentation

◆ Create()

IMemoryChunkStore * BuildPatchServices::FMemoryChunkStoreFactory::Create ( int32  ChunkCount,
IChunkEvictionPolicy EvictionPolicy,
IChunkStore OverflowStore,
IMemoryChunkStoreStat MemoryChunkStoreStat,
IChunkReferenceTracker InOptionalChunkReferenceTracker 
)
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.

Parameters
ChunkCountThe size of the store, at which point chunks will start being evicted based on the policy provided.
EvictionPolicyRequired ptr to an eviction policy that will be used to clean out the store, and evict data when full.
OverflowStoreRequired ptr to an IChunkStore which will be used as an overflow for evicted chunks.
MemoryChunkStoreStatRequired ptr to the statistics class.
Returns
the new IMemoryChunkStore instance created.

The documentation for this class was generated from the following files: