Message.AddBytes Method
Namespace: Riptide
Assembly: RiptideNetworking.dll
Overloads
| AddBytes(byte[], bool) | Adds a byte array to the message.  | 
    
| AddBytes(byte[], int, int, bool) | Adds a byte array to the message.  | 
    
AddBytes(byte[], bool)
Adds a byte array to the message.
public Message AddBytes(byte[] array, bool includeLength = true)
Parameters
| byte[] | array | 
      The array to add.  | 
    
| bool | includeLength | 
      Whether or not to include the length of the array in the message.  | 
    
Returns
| Message | The message that the array was added to.  | 
    
AddBytes(byte[], int, int, bool)
Adds a byte array to the message.
public Message AddBytes(byte[] array, int startIndex, int amount, bool includeLength = true)
Parameters
| byte[] | array | 
      The array to add.  | 
    
| int | startIndex | 
      The position at which to start adding from the array.  | 
    
| int | amount | 
      The amount of bytes to add from the startIndex of the array.  | 
    
| bool | includeLength | 
      Whether or not to include the   | 
    
Returns
| Message | The message that the array was added to.  |