title: calculate hexadecimal offset within array
body: <p>I know in general what  offsets are, but I have a question regarding offsets on the following array. Let's say I have a uint8 array:</p>
  
  <pre><code>   const myArray uint8[]=
     {
     0xCB, 0xF8, 0xFA, 0xFB, 0xCA, 0xAC, 0x24, 0x53, 0x64, 0x4F, 0x1E, 0xA2, 
     0xF9, 0x78, 0xCA, 0x63, 0xB8, 0x7F, 0xFC, 0xFB, 0xD8, 0xFA, 0xFB, 0x8F, 
     0x67, 0xC1, 0xFD, 0xF8, 0xC2, 0xF8, 0xFF, 0xF9, 0xFA, 0xE4, 0xFA, 0xF9,
     0xFB, 0xFE, 0xE4, 0xFA, 0xCA, 0xCF, 0x94, 0xD5, 0xD6, 0xCA, 0xA2, 0xA2,
     ....
     ....
     ....
     ....
  }
  </code></pre>
  
  <p>Now I have description which says:</p>
  
  <pre><code>--------------------------------------------------
  | Offset in myArray | meaning     |  size (Byte) |
  --------------------------------------------------
  |    0x00           |  Version     |  1          |
  -------------------------------------------------
  |    0x01           |  Timestamp  |  15         |
   ------------------------------------------------
  |    0x10           |  Info1      |   8         |
   ------------------------------------------------
  |    0x18           |  Info2      |   2         |
   ------------------------------------------------
  </code></pre>
  
  <p>Does this in myArray mean:</p>
  
  <p>For offset 0x00: It's the element with index 0 of myArray, so 0xCB</p>
  
  <p>For offset 0x01: It's the element with index 1..9,so 0xF8, 0xFA, 0xFB, 0xCA, 0xAC, 0x24, 0x53, 0x64, 0x4F</p>
  
  <p>etc.</p>
  
  <p>Or do I interpret it wrong?</p>