Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
Circular buffer for storing continuous frame data.
| Name | TNetworkPredictionBuffer |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionBuffer.h |
| Include Path | #include "NetworkPredictionBuffer.h" |
Syntax
template<typename ElementType, bool SingleElement>
struct TNetworkPredictionBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNetworkPredictionBuffer
(
int32 Capacity |
NetworkPredictionBuffer.h | ||
TNetworkPredictionBuffer
(
const TNetworkPredictionBuffer< ElementType, SingleElement >&& Other |
NetworkPredictionBuffer.h |
Struct Specializations
| Name | Remarks |
|---|---|
| TNetworkPredictionBuffer< ElementType, true > |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Elements | TArray< ElementType > | Holds the buffer's elements. | NetworkPredictionBuffer.h | |
| IndexMask | int32 | Holds the mask for indexing the buffer's elements. | NetworkPredictionBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Capacity() |
NetworkPredictionBuffer.h | ||
void Resize
(
int32 NewSize, |
Resizes while preserving contents from head position. | NetworkPredictionBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType & operator[]
(
int32 Index |
NetworkPredictionBuffer.h | ||
const ElementType & operator[]
(
int32 Index |
NetworkPredictionBuffer.h | ||
TNetworkPredictionBuffer< ElementType, SingleElement > & operator=
(
TNetworkPredictionBuffer< ElementType, SingleElement >&& Other |
NetworkPredictionBuffer.h |