UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::Private::FChangeMaskCache Struct Reference

#include <ChangeMaskCache.h>

Classes

struct  FCachedInfo
 

Public Member Functions

void PrepareCache (uint32 IndexCount, uint32 StorageSize)
 
void ResetCache ()
 
void EmptyCache ()
 
FCachedInfoAddChangeMaskForObject (uint32 InternalIndex, uint32 BitCount)
 
FCachedInfoAddSubObjectOwnerDirty (uint32 InternalIndex)
 
FCachedInfoAddEmptyChangeMaskForObject (uint32 InternalIndex)
 
uint32GetChangeMaskStorage (const FCachedInfo &Info)
 
void PopLastEntry ()
 

Public Attributes

TArray< FCachedInfo, TInlineAllocator< 1 > > Indices
 
TArray< uint32, TInlineAllocator< 1 > > Storage
 

Detailed Description

Cache used to propagate captured changemasks to all connections This data could be allocated using linear allocator and released in PostSendUpdate

Member Function Documentation

◆ AddChangeMaskForObject()

FChangeMaskCache::FCachedInfo & UE::Net::Private::FChangeMaskCache::AddChangeMaskForObject ( uint32  InternalIndex,
uint32  BitCount 
)
inline

The ref is only valid until the next Add call.

◆ AddEmptyChangeMaskForObject()

FChangeMaskCache::FCachedInfo & UE::Net::Private::FChangeMaskCache::AddEmptyChangeMaskForObject ( uint32  InternalIndex)
inline

The ref is only valid until the next Add call.

◆ AddSubObjectOwnerDirty()

FChangeMaskCache::FCachedInfo & UE::Net::Private::FChangeMaskCache::AddSubObjectOwnerDirty ( uint32  InternalIndex)
inline

The ref is only valid until the next Add call.

◆ EmptyCache()

void UE::Net::Private::FChangeMaskCache::EmptyCache ( )
inline

Empty cached data and free memory

◆ GetChangeMaskStorage()

uint32 * UE::Net::Private::FChangeMaskCache::GetChangeMaskStorage ( const FCachedInfo Info)
inline

The pointer is only valid until the next Add call.

◆ PopLastEntry()

void UE::Net::Private::FChangeMaskCache::PopLastEntry ( )
inline

Reverts the effects of the last Add call.

◆ PrepareCache()

void UE::Net::Private::FChangeMaskCache::PrepareCache ( uint32  IndexCount,
uint32  StorageSize 
)
inline

Prepare cache for use by reserving space for expected data

◆ ResetCache()

void UE::Net::Private::FChangeMaskCache::ResetCache ( )
inline

Empty cache without freeing memory

Member Data Documentation

◆ Indices

TArray<FCachedInfo, TInlineAllocator<1> > UE::Net::Private::FChangeMaskCache::Indices

◆ Storage

TArray<uint32, TInlineAllocator<1> > UE::Net::Private::FChangeMaskCache::Storage

The documentation for this struct was generated from the following file: