UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk > Class Template Reference
+ Inheritance diagram for UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >:

Public Member Functions

void PopChunkSafe ()
 
InElementTypeEmplace_GetRef ()
 
int32 GetFirstChunkNum () const
 
const InElementTypeGetFirstChunkData () const
 
void Reset ()
 
- Public Member Functions inherited from TChunkedArray< InElementType, BytesPerChunk >
 TChunkedArray (int32 InNumElements=0)
 
 TChunkedArray (TChunkedArray &&Other)
 
 TChunkedArray (const TChunkedArray &)=default
 
 TChunkedArray (FIntrusiveUnsetOptionalState)
 
TChunkedArrayoperator= (TChunkedArray &&Other)
 
TChunkedArrayoperator= (const TChunkedArray &)=default
 
 ~TChunkedArray ()
 
bool operator== (FIntrusiveUnsetOptionalState) const
 
ElementType & operator() (int32 ElementIndex)
 
const ElementType & operator() (int32 ElementIndex) const
 
ElementType & operator[] (int32 ElementIndex)
 
const ElementType & operator[] (int32 ElementIndex) const
 
bool IsEmpty () const
 
int32 Num () const
 
SIZE_T GetAllocatedSize (void) const
 
UE_FORCEINLINE_HINT bool IsValidIndex (int32 Index) const
 
int32 AddElement (const ElementType &Item)
 
int32 Emplace (ArgsType &&... Args)
 
TChunkedArrayoperator+= (const TArray< ElementType > &Other)
 
TChunkedArrayoperator+= (const TChunkedArray &Other)
 
int32 Add (int32 Count=1)
 
void CopyToLinearArray (TArray< ElementType, OtherAllocator > &DestinationArray)
 
void MoveToLinearArray (TArray< ElementType, OtherAllocator > &DestinationArray)
 
void Empty (int32 Slack=0)
 
void Reserve (int32 Number)
 
void Shrink ()
 
FIterType begin ()
 
FConstIterType begin () const
 
FIterType end ()
 
FConstIterType end () const
 

Additional Inherited Members

- Public Types inherited from TChunkedArray< InElementType, BytesPerChunk >
using IntrusiveUnsetOptionalStateType = TChunkedArray
 
- Static Public Attributes inherited from TChunkedArray< InElementType, BytesPerChunk >
static constexpr bool bHasIntrusiveUnsetOptionalState
 
- Protected Types inherited from TChunkedArray< InElementType, BytesPerChunk >
enum  
 
typedef TIndirectArray< FChunk, FDefaultAllocatorChunksType
 
- Protected Attributes inherited from TChunkedArray< InElementType, BytesPerChunk >
ChunksType Chunks
 
int32 NumElements
 

Detailed Description

template<class InElementType, uint32 BytesPerChunk>
class UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >

Most logic in here revolves around batches. As such we need access to the Chunks.

Member Function Documentation

◆ Emplace_GetRef()

template<class InElementType , uint32 BytesPerChunk>
InElementType & UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >::Emplace_GetRef ( )
inline

Constructs a new element at the end of the array. Returns a reference to it.

◆ GetFirstChunkData()

template<class InElementType , uint32 BytesPerChunk>
const InElementType * UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >::GetFirstChunkData ( ) const
inline

Returns a pointer to the first element in the first chunk.

◆ GetFirstChunkNum()

template<class InElementType , uint32 BytesPerChunk>
int32 UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >::GetFirstChunkNum ( ) const
inline

Returns the number of elements in first chunk.

◆ PopChunkSafe()

template<class InElementType , uint32 BytesPerChunk>
void UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >::PopChunkSafe ( )
inline

Removes the first chunk and all elements in it, if it exists.

◆ Reset()

template<class InElementType , uint32 BytesPerChunk>
void UE::Net::Private::TChunkedArrayWithChunkManagement< InElementType, BytesPerChunk >::Reset ( )
inline

Sets num elements to zero but keeps allocations.


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