public void Dispose() { #if ENABLE_UNITY_COLLECTIONS_CHECKS AtomicSafetyHandle.CheckDeallocateAndThrow(m_Safety); DisposeSentinel.Dispose(ref m_Safety, ref m_DisposeSentinel); #endif NativeHashSetData.DeallocateHashSet(buffer, allocator); buffer = null; }