# NativeArrayExtensions

> Extension methods for NativeArray.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public static class NativeArrayExtensions
```

## Static Methods

| Method                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ArraysEqual](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/arraysequal.md) | Returns true if this array and another have equal length and content.                                                                                                                                                                                                                                                                                                                      |
| [Contains](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/contains.md)       | Returns true if a particular value is present in a buffer.                                                                                                                                                                                                                                                                                                                                 |
| [CopyFrom](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/copyfrom.md)       | Copies all elements of specified container to array.                                                                                                                                                                                                                                                                                                                                       |
| [IndexOf](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/indexof.md)         | Finds the index of the first occurrence of a particular value in a buffer.                                                                                                                                                                                                                                                                                                                 |
| [Reinterpret](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/reinterpret.md) | 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"\&gt;Array](https://docs.unity3d.com/Packages/com.unity.collections@latest?subfolder=/manual/allocation.html#array-reinterpretation"\&gt;Array) reinterpretation\</a>. |

## Structs

| Struct                                                                                                                                           | Description                                                                             |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| [NativeArrayExtensions.NativeArrayStaticId\<T>](/engine/6000.7/script-reference/unity/collections/nativearrayextensions/nativearraystaticid1.md) | Provides a Burst compatible id for NativeArray`T` types. Used by the Job Safety System. |
