title: byte collection based similar with ByteBuffer from java
body: <p>I need a C# implementation of something similar with ByteBuffer from Java. Methods of interest
  - .remaining() - returns the number of elements between the current position and the limit.
  - .array() 
  - .clear()
  - .put(byte[], int, int)</p>
  
  <p>I started something with <code>MemoryStream</code>.. but no <code>clear()</code>, and a lot of improvisation
  Also, i found a c# implementation on Koders: <a href="http://www.koders.com/csharp/fid2F8CB1B540E646746D3ADCB2B0AC867A0A8DCB06.aspx?s=socket#L2" rel="noreferrer">http://www.koders.com/csharp/fid2F8CB1B540E646746D3ADCB2B0AC867A0A8DCB06.aspx?s=socket#L2</a>.. which I will use.. but maybe you guys know something better</p>