title: What is the use of the ArraySegment<T> class?
body: <p>I just came across the <code>ArraySegment&lt;byte&gt;</code> type while subclassing the <code>MessageEncoder</code> class.</p>
  
  <p>I now understand that it's a segment of a given array, takes an offset, is not enumerable, and does not have an indexer, but I still fail to understand its usage. Can someone please explain with an example?</p>