Class NativeArrayExtensions
Extension methods for NativeArray.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public static class NativeArrayExtensions
Methods
Name | Description |
---|---|
ArraysEqual<T>(NativeArray<T>, NativeArray<T>) | Returns true if this array and another have equal length and content. |
Contains<T, U>(void*, int, U) | Returns true if a particular value is present in a buffer. |
Contains<T, U>(NativeArray<T>, U) | Returns true if a particular value is present in this array. |
Contains<T, U>(ReadOnly, U) | Returns true if a particular value is present in this array. |
CopyFrom<T>(ref NativeArray<T>, in UnsafeHashSet<T>) | Copies all elements of specified container to array. |
CopyFrom<T>(ref NativeArray<T>, in NativeHashSet<T>) | Copies all elements of specified container to array. |
CopyFrom<T>(ref NativeArray<T>, NativeList<T>) | Copies all elements of specified container to array. |
IndexOf<T, U>(void*, int, U) | Finds the index of the first occurrence of a particular value in a buffer. |
IndexOf<T, U>(NativeArray<T>, U) | Finds the index of the first occurrence of a particular value in this array. |
IndexOf<T, U>(ReadOnly, U) | Finds the index of the first occurrence of a particular value in this array. |
Reinterpret<T, U>(NativeArray<T>) | Returns the reinterpretation of this array into another kind of NativeArray. See Array reinterpretation. |