docs.unity3d.com
    Show / Hide Table of Contents

    Class OutgoingMessage

    Utility class for forming the data that is sent to the SideChannel.

    Inheritance
    Object
    OutgoingMessage
    Namespace: Unity.MLAgents.SideChannels
    Syntax
    public class OutgoingMessage : IDisposable

    Constructors

    OutgoingMessage()

    Create a new empty OutgoingMessage.

    Declaration
    public OutgoingMessage()

    Methods

    Dispose()

    Clean up the internal storage.

    Declaration
    public void Dispose()

    SetRawBytes(Byte[])

    Overwrite the message with a specific byte array.

    Declaration
    public void SetRawBytes(byte[] data)
    Parameters
    Type Name Description
    Byte[] data

    WriteBoolean(Boolean)

    Write a boolean value to the message.

    Declaration
    public void WriteBoolean(bool b)
    Parameters
    Type Name Description
    Boolean b

    WriteFloat32(Single)

    Write a float values to the message.

    Declaration
    public void WriteFloat32(float f)
    Parameters
    Type Name Description
    Single f

    WriteFloatList(IList<Single>)

    Write a list or array of floats to the message.

    Declaration
    public void WriteFloatList(IList<float> floatList)
    Parameters
    Type Name Description
    IList<Single> floatList

    WriteInt32(Int32)

    Write an interger value to the message.

    Declaration
    public void WriteInt32(int i)
    Parameters
    Type Name Description
    Int32 i

    WriteString(String)

    Write a string value to the message.

    Declaration
    public void WriteString(string s)
    Parameters
    Type Name Description
    String s
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023