CollectionHelper
static class in Unity.Collections · Unity.Collections
14 of 17 of Unity's members
Fields 1
const int CacheLineSizeMethods 14
static int Align(int size, int alignmentPowerOfTwo)static ulong Align(ulong size, ulong alignmentPowerOfTwo)static int AssumePositive(int value)static NativeArray<T> ConvertExistingDataToNativeArray<T>(void* dataPointer, int length, AllocatorManager.AllocatorHandle allocator, bool setTempMemoryHandle = false)static NativeArray<T> CreateNativeArray<T>(int length, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)static NativeArray<T> CreateNativeArray<T>(NativeArray<T> array, AllocatorManager.AllocatorHandle allocator)static NativeArray<T> CreateNativeArray<T>(T[] array, AllocatorManager.AllocatorHandle allocator)static AtomicSafetyHandle CreateSafetyHandle(AllocatorManager.AllocatorHandle allocator)static void Dispose<T>(NativeArray<T> nativeArray)static void DisposeNativeArray<T>(NativeArray<T> nativeArray, AllocatorManager.AllocatorHandle allocator)static void DisposeSafetyHandle(ref AtomicSafetyHandle handle)static uint Hash(void* ptr, int bytes)djb2 over the bytes, last to first (the package's string hash).
static bool IsAligned(void* p, int alignmentPowerOfTwo)static bool IsAligned(ulong offset, int alignmentPowerOfTwo)static bool IsPowerOfTwo(int value)static int Log2Ceil(int value)static int Log2Floor(int value)static void SetStaticSafetyId<T>(ref AtomicSafetyHandle handle, ref int sharedStaticId)Not in Tassix yet 3
CheckReflectionDataCorrect ConvertExistingNativeListToNativeArray CreateNativeParallelMultiHashMap