コード例 #1
0
ファイル: memoryPool.cs プロジェクト: iLanceS/fastCSharp
 public void Push(ref byte[] buffer)
 {
     byte[] data = Interlocked.Exchange(ref buffer, null);
     if (data != null && data.Length == Size)
     {
         pool.Push(data);
     }
 }