Search Results for

    Show / Hide Table of Contents

    Class MessagePacking

    Inheritance
    Object
    MessagePacking
    Namespace: Mirror
    Assembly: doc.dll
    Syntax
    public static class MessagePacking : object

    Fields

    | Improve this Doc View Source

    HeaderSize

    Declaration
    public const int HeaderSize = null
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    MaxContentSize

    Declaration
    public static int MaxContentSize { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    GetId<T>()

    Declaration
    public static ushort GetId<T>()
        where T : struct, NetworkMessage
    Returns
    Type Description
    UInt16
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Pack<T>(T, NetworkWriter)

    Declaration
    public static void Pack<T>(T message, NetworkWriter writer)
        where T : struct, NetworkMessage
    Parameters
    Type Name Description
    T message
    NetworkWriter writer
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Unpack(NetworkReader, out UInt16)

    Declaration
    public static bool Unpack(NetworkReader messageReader, out ushort msgType)
    Parameters
    Type Name Description
    NetworkReader messageReader
    UInt16 msgType
    Returns
    Type Description
    Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX