コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     foreach (var buffer in BufferSet)
     {
         ArrayPool.Return(buffer.Buffer);
     }
     BufferSet.Clear();
 }
コード例 #2
0
 public void Clear()
 {
     foreach (BufferPartition buffer in BufferSet)
     {
         ArrayPool.Return(buffer.Buffer);
     }
     BufferSet.Clear();
     Position = 0;
 }