protected override void Dispose(bool disposing)
 {
     foreach (var buffer in BufferSet)
     {
         ArrayPool.Return(buffer.Buffer);
     }
     BufferSet.Clear();
 }
Exemplo n.º 2
0
 public void Clear()
 {
     foreach (BufferPartition buffer in BufferSet)
     {
         ArrayPool.Return(buffer.Buffer);
     }
     BufferSet.Clear();
     Position = 0;
 }