title: How to get a bit range from a hexadecimal string and convert it to an integer?
body: <p>Im asking this question, because couldn't find a solution for this particular case.</p>
  <p>I need to extract value (as int or byte) from a hex string and from a given range of bits. For example:</p>
  <p>hexString = &quot;0x34840A00&quot;</p>
  <p>bits (from calc): 00110100 10000100 00001<strong>010</strong> 00000000</p>
  <p>Now I need bits from 8 to 10: 010</p>
  <p>Now convert to int/byte value. Any help? Im struggling with understanding of bit operations here.</p>