title: C# getting 1st 2 integers out of a byte array
body: <p>I have a byte[] like this</p>
  
  <pre><code>byte[] buffer = new byte[1024];
  </code></pre>
  
  <p>this byte[] may have values like this:</p>
  
  <pre><code>buffer = {0, 0, 0, 106, 0, 0, 0, 11, 64, 33, 50, 32, 32, 32, ....}
  </code></pre>
  
  <p>I am trying to get first 8 bytes, that is:</p>
  
  <p><code>0,0,0,106</code> </p>
  
  <p><code>0,0,0,11</code> </p>
  
  <p>, and convert these into integers which is 106 and 11.  </p>
  
  <p>I can safely assume that first 8 bytes always represent 2 integers like in example above, these are 106 and 11 and that they take form of 4 bytes with 1st 3 being 0's like above.</p>
  
  <p><strong>Both are 4 byte signed integers in Hi-Lo order</strong></p>
  
  <p>How do I do that in C#?</p>