Ejemplo n.º 1
0
 public bool Equals(BufferSegment other)
 {
     return(this.Data == other.Data &&
            this.Offset == other.Offset &&
            this.Count == other.Count);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Release back a BufferSegment's data to the pool.
 /// </summary>
 /// <param name="segment"></param>
 public static void Release(BufferSegment segment)
 {
     Release(segment.Data);
 }