Class OutgoingMessage
Utility class for forming the data that is sent to the SideChannel.
Inherited Members
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()
Implements
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 |