Class RpcQueueHistoryFrame
QueueHistoryFrame
Used by the RpcQueueContainer to hold queued RPCs
All queued Rpcs end up in a PooledNetworkBuffer within a QueueHistoryFrame instance.
Inheritance
RpcQueueHistoryFrame
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public class RpcQueueHistoryFrame
Constructors
RpcQueueHistoryFrame(QueueFrameType, NetworkUpdateStage, int)
QueueHistoryFrame Constructor
Declaration
public RpcQueueHistoryFrame(RpcQueueHistoryFrame.QueueFrameType queueType, NetworkUpdateStage updateStage, int maxClients = 512)
Parameters
Fields
HasLoopbackData
Declaration
public bool HasLoopbackData
Field Value
IsDirty
Declaration
Field Value
LoopbackHistoryFrame
Declaration
public RpcQueueHistoryFrame LoopbackHistoryFrame
Field Value
QueueBuffer
Declaration
public PooledNetworkBuffer QueueBuffer
Field Value
QueueItemOffsets
Declaration
public List<uint> QueueItemOffsets
Field Value
QueueReader
Declaration
public PooledNetworkReader QueueReader
Field Value
QueueWriter
Declaration
public PooledNetworkWriter QueueWriter
Field Value
TotalSize
Declaration
Field Value
Methods
CloseQueue()
CloseQueue
Should be called once all processing of the current frame is complete.
This only closes the m_CurrentQueueItem's stream which is used as a "middle-man" (currently)
for delivering the RPC message to the method requesting a queue item from a frame.
Declaration
GetCurrentMarkedPosition()
Returns the current position that was marked (to track size of RPC msg)
Declaration
public long GetCurrentMarkedPosition()
Returns
| Type |
Description |
| long |
m_CurrentStreamSizeMark
|
GetQueueFrameType()
GetQueueFrameType
Returns whether this is an inbound or outbound frame
Declaration
public RpcQueueHistoryFrame.QueueFrameType GetQueueFrameType()
Returns
MarkCurrentStreamPosition()
MarkCurrentStreamSize
Marks the current size of the stream (used primarily for sanity checks)
Declaration
public void MarkCurrentStreamPosition()