Revision Difference
Data.Connection.SendMessage#525020
<member category="class" type="method" namespace="Steamworks.Data" parent="Connection" name="SendMessage">
<args>
<arg name="ptr" type="System.IntPtr"></arg>
<arg name="size" type="int"></arg>
<arg name="sendType" type="Data.SendType" default="Reliable"></arg>
</args>
<return type="Result"></return>
<summary>This is the best version to use.</summary>⤶
</member>
<member category="class" type="method" namespace="Steamworks.Data" parent="Connection" name="SendMessage">
<args>
<arg name="data" type="byte[]"></arg>
<arg name="sendType" type="Data.SendType" default="Reliable"></arg>
</args>
<return type="Result"></return>
<summary>Ideally should be using an IntPtr version unless you're being really careful with the byte[] array and ⤶
you're not creating a new one every frame (like using .ToArray())</summary>⤶
</member>
<member category="class" type="method" namespace="Steamworks.Data" parent="Connection" name="SendMessage">
<args>
<arg name="data" type="byte[]"></arg>
<arg name="offset" type="int"></arg>
<arg name="length" type="int"></arg>
<arg name="sendType" type="Data.SendType" default="Reliable"></arg>
</args>
<return type="Result"></return>
<summary>Ideally should be using an IntPtr version unless you're being really careful with the byte[] array and ⤶
you're not creating a new one every frame (like using .ToArray())</summary>⤶
</member>
<member category="class" type="method" namespace="Steamworks.Data" parent="Connection" name="SendMessage">
<args>
<arg name="str" type="string"></arg>
<arg name="sendType" type="Data.SendType" default="Reliable"></arg>
</args>
<return type="Result"></return>
<summary>This creates a ton of garbage - so don't do anything with this beyond testing!</summary>⤶
</member>