title: Combining two buffers into one
body: <p>I need to have two buffers (<code>A</code> and <code>B</code>) and when either of the buffers is full it needs to write its contents to the "merged" buffer - <code>C</code>. Using memcopy seems to be too slow for this operation as noted below in my question. Any insight?'</p>
  
  <p>I haven't tried but I've been told that memcopy will not work. This is an embedded system. 2 buffers. Both of different sizes and when they are full dumb to a common 'C' buffer which is a bigger size than the other two.. Not sure why I got down rated..</p>
  
  <p><strong>Edit:</strong> Buffer A and B will be written to prior to C being completely empty. </p>
  
  <p>The <strong>memcopy</strong> is taking too long and the common buffer 'C' is getting over run. </p>