title: buffer pointer as argument in c function
body: <p>In a my application (using c) i need to read some integer parameters from a byte buffer using this syntax:</p>
  
  <pre><code>param1 = (uInt16)(buffer[1]&lt;&lt;8) + buffer[0]);
  param2 = (uInt16)(buffer[3]&lt;&lt;8) + buffer[2]);
  </code></pre>
  
  <p>I would like to write a function to get Integer from the buffer without using indexes or fixed number and calling it more times... like this:</p>
  
  <pre><code>param1 = getWord(buffer);  //The buffer now points to first integer
  param2 = getWord(buffer);  //now the buffer points to second integer
  </code></pre>
  
  <p>In this case I need to pass the buffer as reference and for sure I need to increase the buffer pointer inside the function. Can someone help me to write this function? Probably I need to pass the array pointer as parameter but I don't know how to do that</p>