Skip to main content

MLAPI.Messaging.RpcQueueHistoryFrame

QueueHistoryFrame Used by the RpcQueueContainer to hold queued RPCs All queued Rpcs end up in a PooledNetworkBuffer within a QueueHistoryFrame instance.

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public class RpcQueueHistoryFrame

Constructors#

RpcQueueHistoryFrame(RpcQueueHistoryFrame.QueueFrameType, NetworkUpdateStage, Int32)#

QueueHistoryFrame Constructor

Declaration#

public RpcQueueHistoryFrame(RpcQueueHistoryFrame.QueueFrameType queueType, NetworkUpdateStage updateStage, int maxClients = 512)

Parameters#

TypeNameDescription
RpcQueueHistoryFrame.QueueFrameTypequeueTypetype of queue history frame (Inbound/Outbound)
NetworkUpdateStageupdateStage
System.Int32maxClients

Fields#

HasLoopbackData#

Declaration#

public bool HasLoopbackData

Field Value#

TypeDescription
System.Boolean

IsDirty#

Declaration#

public bool IsDirty

Field Value#

TypeDescription
System.Boolean

LoopbackHistoryFrame#

Declaration#

public RpcQueueHistoryFrame LoopbackHistoryFrame

Field Value#

TypeDescription
RpcQueueHistoryFrame

QueueBuffer#

Declaration#

public PooledNetworkBuffer QueueBuffer

Field Value#

TypeDescription
PooledNetworkBuffer

QueueItemOffsets#

Declaration#

public List<uint> QueueItemOffsets

Field Value#

TypeDescription
System.Collections.Generic.List<System.UInt32>

QueueReader#

Declaration#

public PooledNetworkReader QueueReader

Field Value#

TypeDescription
PooledNetworkReader

QueueWriter#

Declaration#

public PooledNetworkWriter QueueWriter

Field Value#

TypeDescription
PooledNetworkWriter

TotalSize#

Declaration#

public uint TotalSize

Field Value#

TypeDescription
System.UInt32

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#

public void CloseQueue()

GetCurrentMarkedPosition()#

Returns the current position that was marked (to track size of RPC msg)

Declaration#

public long GetCurrentMarkedPosition()

Returns#

TypeDescription
System.Int64m_CurrentStreamSizeMark

GetQueueFrameType()#

GetQueueFrameType Returns whether this is an inbound or outbound frame

Declaration#

public RpcQueueHistoryFrame.QueueFrameType GetQueueFrameType()

Returns#

TypeDescription
RpcQueueHistoryFrame.QueueFrameType

MarkCurrentStreamPosition()#

MarkCurrentStreamSize Marks the current size of the stream (used primarily for sanity checks)

Declaration#

public void MarkCurrentStreamPosition()