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