Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
Sparse buffer: each element has explicit Frame value.
| Name | TNetworkSimAuxBuffer |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionBuffer.h |
| Include Path | #include "NetworkPredictionBuffer.h" |
Syntax
template<typename ElementType>
struct TNetworkSimAuxBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetworkSimAuxBuffer
(
int32 Capacity |
NetworkPredictionBuffer.h |
Structs
| Name | Remarks |
|---|---|
| TInternal |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Elements | TArray< TInternal > | Holds the buffer's elements. | NetworkPredictionBuffer.h | |
| HeadPosition | int32 | Latest element to be written. | NetworkPredictionBuffer.h | |
| IndexMask | int32 | Holds the mask for indexing the buffer's elements. | NetworkPredictionBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetSimLazyWriterFunc< ElementType > LazyWriter
(
int32 Frame |
NetworkPredictionBuffer.h | ||
void Resize
(
int32 NewSize |
Resizes while preserving contents from head position. | NetworkPredictionBuffer.h | |
ElementType * WriteAtFrame
(
int32 Frame |
Writes a new element at Frame. Copies previous frames contents into new element. | NetworkPredictionBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType * operator[]
(
int32 Frame |
NetworkPredictionBuffer.h | ||
const ElementType * operator[]
(
int32 Frame |
NetworkPredictionBuffer.h |