title: Converting byte to int
body: <p>so I have a Bytearray <code>BYTE dataOut[3]</code> with the following data which I send out to a device.</p>
  
  <pre><code>unsigned int value = 512;
  BYTE low_byte = 0xff &amp; value;
  BYTE high_byte = value &gt;&gt; 8;
  
  dataOut[0]=SET_POSITION; //predefined
  dataOut[1]=low_byte;
  dataOut[2]=high_byte;
  </code></pre>
  
  <p>The device executes the command in this data packet. Then I call a read function which populates <code>BYTE dataIn[3]</code> with data of the same format. How can I convert the bytes in <code>dataIn[1]</code> and <code>dataIn[2]</code> into an int value?</p>
  
  <p>Thanks!</p>