TNetworkSimBufferBase

Common implementations shared by TNetworkSimContiguousBuffer/TNetworkSimSparseBuffer.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkedSimulationModelBuffer.h

Include

#include "NetworkedSimulationModelBuffer.h"

Syntax

template<typename T>
struct TNetworkSimBufferBase

Remarks

Common implementations shared by TNetworkSimContiguousBuffer/TNetworkSimSparseBuffer.

Functions

Name Description

Public function

void

 

CopyAndMerge

(
    const TSource& SourceBuffer
)

Copies each element of SourceBuffer into this buffer. This could break continuity so for TNetworkSimContiguousBuffer, it is possible to lose elements by doing this.

Public function Const

FString

 

GetBasicDebugStr()

Public function Const

bool

 

IsValidFrame

(
    int32 Frame
)

Protected function

ElementType ...

 

WriteFrameInitializedFromHeadImpl

(
    int32 Frame
)

Creates a new frame, but -If frame already exists, returns existing -If frame > head, contents of head are copied into new frame -If frame < tail, contents are cleared to default value (this function is sketchy and poorly named but is proving to be useful in a few places)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss