title: Convert native buffer to MemoryStream
body: <p>In my C++\CLI i have this piece of code:</p>
  
  <pre><code>array&lt;Byte&gt;^ out_buf = gcnew array&lt;Byte&gt;(stream_size);
  Marshal::Copy(IntPtr(buf), out_buf, 0, Int32(stream_size)); 
  System::IO::MemoryStream^ stream = gcnew MemoryStream(out_buf);
  </code></pre>
  
  <p>in <code>MemoryStream(out_buf)</code>, does memory stream allocate memory again or just take ownership of the <code>out_buf</code>?</p>
  
  <p>if <code>MemoryStream</code> does allocate memory again, is there way to convert native buffer to <code>MemoryStream</code>?</p>