title: Could I use stringstream as a memory stream like `MemoryStream` in C#?
body: <p>In C/C++, strings are NULL terminated.</p>
  
  <p>Could I use <code>stringstream</code> as a memory stream like <code>MemoryStream</code> in C#?</p>
  
  <p>Data of memory streams may have <code>\0</code> values in the middle of data, but C++ strings are NULL terminated.</p>