title: How to access value from a consecutive locations with double pointer using memcpy
body: <p>As we see in the dipiction below</p>
  <p><a href="https://i.stack.imgur.com/oEppr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oEppr.png" alt="memory map" /></a></p>
  <p>There are two memory blocks low(250 x unsigned int) and high(250 x unsigned int)
  The High block contains the values and the low block contains the address</p>
  <p>So I have created an Array of pointer from low block to high block
  and accessing this array of pointer using another pointer(**OutputOffsetAddress) which traverse through the low block deferences the address and fetches the value</p>
  <p>So If I wanted to read a value straight away from an address (without all this pointers) I did it this way</p>
  <pre><code>Read(unsigned offset, void *buffer, unsigned size)
  {
    memcpy(buffer, memBase + offset, size);
  }
  </code></pre>
  <p>But now I have a double pointer which I want to deference it and get the value.</p>
  <p>One of the approach is</p>
  <pre><code>unsigned int a[250];
  for (int x = 0; x &lt; 250; x++)
  {
      a[x] = **outputOffsetAddress;
      outputOffsetAddress++;
  }
  </code></pre>
  <p><strong>But I have a time constraint of 10 ms to read all 250 locations.</strong></p>
  <p>Will the above solution work
  if not How I can do the same thing using a <code>memcpy</code></p>