title: MemoryStream read/write and data length
body: <p>I have a MemoryStream /BinaryWriter , I use it as following:</p>
  
  <pre><code>memStram = new MemoryStream();
  memStramWriter = new BinaryWriter(memStram);
  
  memStramWriter(byteArrayData);
  </code></pre>
  
  <p>now to read I do the following:</p>
  
  <pre><code>byte[] data = new byte[this.BulkSize];
  int readed = this.memStram.Read(data, 0, Math.Min(this.BulkSize,(int)memStram.Length));
  </code></pre>
  
  <p>My 2 question is:</p>
  
  <ol>
  <li>After I read, the position move to currentPosition+readed , Does the
  memStram.Length will changed? </li>
  <li>I want to init the stream (like I just create it), can I do the following instead using Dispose and new again, if not is there any faster way than dispose&amp;new: ;</li>
  </ol>
  
  <blockquote>
  <pre><code>memStram.Position = 0;
  memStram.SetLength(0);
  </code></pre>
  </blockquote>
  
  <p>Thanks.
  Joseph</p>