title: Passing a signed byte array through a BluetoothSocket in Monodroid
body: <p>I am having an interesting problem using Monodroid to send commands to a device via Bluetooth.  </p>
  
  <p>I am using this Monodroid method:</p>
  
  <p>BluetoothSocket.OutputStream.Write(byte[] buffer, int offset, int count);</p>
  
  <p>I need to send the following 8-byte frame:</p>
  
  <ul>
  <li>0x51</li>
  <li>0x26</li>
  <li>0x0</li>
  <li>0x0</li>
  <li>0x0</li>
  <li>0x0</li>
  <li>0xFFFFFFA3</li>
  <li>0x0</li>
  </ul>
  
  <p>The problem is that 0xFFFFFFA3 is a signed byte (-93) so this means I need to use C#.NET's sbyte rather than byte to create the array to pass to the Write method.  </p>
  
  <p>However, I cannot pass an sbyte[] array to the Write method I can only pass a byte[] array.  C#.NET does not allow me to put 0xFFFFFFA3 in a byte because it is signed.  </p>
  
  <p>What can I do to pass the command through the socket?  Thank you.</p>