title: Convert ushort[] into byte[] and back
body: <p>I have a ushort array that needs converting into a byte array to be transferred over a network.</p>
  
  <p>Once it gets to its destination, I need then reconvert it back into the same ushort array it was to being with.</p>
  
  <p><strong>Ushort Array</strong></p>
  
  <p>Is an array that is of Length 217,088 (1D array of broken down image 512 by 424). It's stored as 16-bit unsigned integers. Each element is 2 bytes.</p>
  
  <p><strong>Byte Array</strong></p>
  
  <p>It needs to be converted into a byte array for network purposes. As each ushort element is worth 2 bytes, I assume the byte array Length needs to be 217,088 * 2?</p>
  
  <p>In terms of converting, and then 'unconverting' correctly, I am unsure on how to do that.</p>
  
  <p>This is for a Unity3D project that is in C#. Could someone point me in the right direction?</p>
  
  <p>Thanks.</p>