title: How to read an integer from a byte[]
body: <p>I have a byte array, and I would like to read an integer from this array. How can I do it?</p>
  
  <p>Something like this:</p>
  
  <pre><code> int i;
  
   tab = new byte[32];
  
   i = readint(tab,0,3); // i = int from tab[0] to tab[3] (int = 4 bytes?)
  
   i = readint(tab,4,7);
  </code></pre>
  
  <p>etc...</p>