docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RpcQueueHistoryFrame

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

    Inheritance
    object
    RpcQueueHistoryFrame
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.Messaging
    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
    Type Name Description
    RpcQueueHistoryFrame.QueueFrameType queueType

    type of queue history frame (Inbound/Outbound)

    NetworkUpdateStage updateStage
    int maxClients

    Fields

    HasLoopbackData

    Declaration
    public bool HasLoopbackData
    Field Value
    Type Description
    bool

    IsDirty

    Declaration
    public bool IsDirty
    Field Value
    Type Description
    bool

    LoopbackHistoryFrame

    Declaration
    public RpcQueueHistoryFrame LoopbackHistoryFrame
    Field Value
    Type Description
    RpcQueueHistoryFrame

    QueueBuffer

    Declaration
    public PooledNetworkBuffer QueueBuffer
    Field Value
    Type Description
    PooledNetworkBuffer

    QueueItemOffsets

    Declaration
    public List<uint> QueueItemOffsets
    Field Value
    Type Description
    List<uint>

    QueueReader

    Declaration
    public PooledNetworkReader QueueReader
    Field Value
    Type Description
    PooledNetworkReader

    QueueWriter

    Declaration
    public PooledNetworkWriter QueueWriter
    Field Value
    Type Description
    PooledNetworkWriter

    TotalSize

    Declaration
    public uint TotalSize
    Field Value
    Type Description
    uint

    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
    Type Description
    long

    m_CurrentStreamSizeMark

    GetQueueFrameType()

    GetQueueFrameType Returns whether this is an inbound or outbound frame

    Declaration
    public RpcQueueHistoryFrame.QueueFrameType GetQueueFrameType()
    Returns
    Type Description
    RpcQueueHistoryFrame.QueueFrameType

    MarkCurrentStreamPosition()

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

    Declaration
    public void MarkCurrentStreamPosition()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)