Navigation
API > API/Runtime > API/Runtime/IrisCore
A variation of TChunkArray that is optimized for use in the Iris networking system. The initial chunks created during construction are placed in a contiguous block of memory to promote locality of reference.
| Name | TNetChunkedArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Core/NetChunkedArray.h |
| Include Path | #include "Iris/Core/NetChunkedArray.h" |
Syntax
template<typename InElementType, uint32 ElementsPerChunk, typename AllocatorType>
class TNetChunkedArray : public TChunkedArray< InElementType, sizeof *100, FDefaultAllocator >
Inheritance Hierarchy
- TChunkedArray → TNetChunkedArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetChunkedArray
(
const TNetChunkedArray& OtherChunkedArray |
Iris/Core/NetChunkedArray.h | ||
TNetChunkedArray
(
TNetChunkedArray&& OtherChunkedArray |
Iris/Core/NetChunkedArray.h | ||
TNetChunkedArray
(
int32 InNumElements, |
Iris/Core/NetChunkedArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TNetChunkedArray() |
Iris/Core/NetChunkedArray.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | TChunkedArray< InElementType, sizeof(InElementType) *ElementsPerChunk, AllocatorType > | Iris/Core/NetChunkedArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddToIndexUninitialized
(
int32 Index |
Add elements to the array so that an index can be successfully addressed, leaving any new element's memory unitialized or initialized by the element's constructor. | Iris/Core/NetChunkedArray.h | |
void AddToIndexZeroed
(
int32 Index |
Add elements to the array so that an index can be successfully addressed, zeroing out the memory for each new element. | Iris/Core/NetChunkedArray.h | |
int32 Capacity() |
Return the maximum number of elements the array can hold before having to add another chunk. | Iris/Core/NetChunkedArray.h | |
void Empty
(
int32 Slack |
Iris/Core/NetChunkedArray.h | ||
int32 NumChunks() |
Iris/Core/NetChunkedArray.h | ||
void Reset
(
int32 NewSize |
Iris/Core/NetChunkedArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetChunkedArray & operator=
(
const TNetChunkedArray& OtherChunkedArray |
Iris/Core/NetChunkedArray.h | ||
TNetChunkedArray & operator=
(
TNetChunkedArray&& OtherChunkedArray |
Iris/Core/NetChunkedArray.h |