NativeArrayExtensions
Extension methods for NativeArray.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public static class NativeArrayExtensions
Static Methods
Method | Description |
|---|---|
| ArraysEqual | Returns true if this array and another have equal length and content. |
| Contains | Returns true if a particular value is present in a buffer. |
| CopyFrom | Copies all elements of specified container to array. |
| IndexOf | Finds the index of the first occurrence of a particular value in a buffer. |
| Reinterpret | Returns the reinterpretation of this array into another kind of NativeArray. See <a href="https://docs.unity3d.com/Packages/com.unity.collections@latest?subfolder=/manual/allocation.html#array-reinterpretation">Array reinterpretation</a>. |
Structs
Struct | Description |
|---|---|
| NativeArrayExtensions.NativeArrayStaticId<T> | Provides a Burst compatible id for NativeArray |