title: copy buffer contents to another buffer
body: <p>I have the contents of an http request in my buffer.
  I then define another buffer of the same size as the last one.
  And i need to copy the contents of the buffer to my new buffer.
  So the help i need is that how do i get to copy one buffer to another buffer.</p>
  
  <p>I tried <code>memcpy</code> but it is not working.</p>
  
  <pre><code>void TrivialMediaPlayer::DeliverMediaData(
          int                         streamId,
          bool                        bHasPriority,
          ConstBufferSptr             pMediaData)
  </code></pre>
  
  <p>What i want is to copy the contents of <code>pMediaData</code> to a new buffer.</p>
  
  <pre><code>BufferSptr buf1 (new Buffer (pMediaData-&gt;Size()) );
  </code></pre>
  
  <p>i want to copy <code>pMediaData</code> in <code>buf1</code>.</p>
  
  <p>thanks</p>