title: How to split an unsigned short in two
body: <p>I am trying to parse binary data that I receive in a string. I am not very familiar with bitwise operation.</p>
  
  <p>One of the byte (which I assume is an unsigned short) in my string contains 2 important numbers: the version and a count.
  Bits 1 to 4 contain the version, bits 5 to 8 contain the count.</p>
  
  <p>So I have an <code>unsigned short</code> containing the data, how do I obtain two unsigned short containing the 2 information I need.</p>
  
  <p><code>bit:  1_2_3_4_5_6_7_8_</code></p>
  
  <p><code>con:  VERSION_COUNT___</code></p>