Class CollectionHelper
Provides helper methods for collections.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public static class CollectionHelper
Fields
Name | Description |
---|---|
Cache |
The size in bytes of the current platform's L1 cache lines. |
Methods
Name | Description |
---|---|
Align(int, int) | Returns an allocation size in bytes that factors in alignment. |
Align(ulong, ulong) | Returns an allocation size in bytes that factors in alignment. |
Check |
Checks that reflection data was properly registered for a job. |
Convert |
Convert existing data into a NativeArray. |
Convert |
Convert NativeList into a NativeArray. |
Create |
Create a NativeArray, using a provided AllocatorHandle. |
Create |
Create a NativeArray from another NativeArray, using a provided AllocatorHandle. |
Create |
Create a NativeArray from a managed array, using a provided AllocatorHandle. |
Create |
Create a NativeArray, using a provided allocator that implements IAllocator. |
Create |
Create a NativeArray from a managed array, using a provided Allocator. |
Create |
Create a NativeParallelMultiHashMap from a managed array, using a provided Allocator. |
Dispose |
Dispose a NativeArray from an AllocatorHandle where it is allocated. |
Dispose<T>(Native |
Dispose a NativeArray from an AllocatorHandle where it is allocated. |
Hash(void*, int) | Returns a (non-cryptographic) hash of a memory block. |
Is |
Returns true if an offset has a given alignment. |
Is |
Returns true if the address represented by the pointer has a given alignment. |
Is |
Returns true if a positive value is a non-zero power of two. |
Log2Ceil(int) | Returns the binary logarithm of the |
Log2Floor(int) | Returns the binary logarithm of the |