public void Compact(int initialSize)
 {
     if (compactedSize != initialSize)
     {
         compactedSize = initialSize;
         pool.Reset(initialSize, Destroy);
     }
 }
예제 #2
0
 static protected void ResetPool(int initialSize, CustomAllocatedObjectPool <T> .FreeDelegate free)
 {
     _pool.Reset(initialSize, free);
 }