Struct NativeArray<T>
Assembly: UnityEngine.dll
Syntax
public struct NativeArray<T> : IDisposable, IEnumerable<T>, IEnumerable, IEquatable<NativeArray<T>> where T : struct
Type Parameters
Constructors
|
Improve this Doc
View Source
NativeArray(T[], Allocator)
Declaration
public NativeArray(T[] array, Allocator allocator)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Allocator |
allocator |
|
|
Improve this Doc
View Source
NativeArray(Int32, Allocator, NativeArrayOptions)
Declaration
public NativeArray(int length, Allocator allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)
Parameters
|
Improve this Doc
View Source
NativeArray(NativeArray<T>, Allocator)
Declaration
public NativeArray(NativeArray<T> array, Allocator allocator)
Parameters
Properties
|
Improve this Doc
View Source
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public T this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; }
Property Value
Methods
|
Improve this Doc
View Source
Copy(T[], Int32, NativeArray<T>, Int32, Int32)
Declaration
public static void Copy(T[] src, int srcIndex, NativeArray<T> dst, int dstIndex, int length)
Parameters
|
Improve this Doc
View Source
Copy(T[], NativeArray<T>)
Declaration
public static void Copy(T[] src, NativeArray<T> dst)
Parameters
|
Improve this Doc
View Source
Copy(T[], NativeArray<T>, Int32)
Declaration
public static void Copy(T[] src, NativeArray<T> dst, int length)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, T[])
Declaration
public static void Copy(NativeArray<T> src, T[] dst)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, T[], Int32)
Declaration
public static void Copy(NativeArray<T> src, T[] dst, int length)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, Int32, T[], Int32, Int32)
Declaration
public static void Copy(NativeArray<T> src, int srcIndex, T[] dst, int dstIndex, int length)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, Int32, NativeArray<T>, Int32, Int32)
Declaration
public static void Copy(NativeArray<T> src, int srcIndex, NativeArray<T> dst, int dstIndex, int length)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, NativeArray<T>)
Declaration
public static void Copy(NativeArray<T> src, NativeArray<T> dst)
Parameters
|
Improve this Doc
View Source
Copy(NativeArray<T>, NativeArray<T>, Int32)
Declaration
public static void Copy(NativeArray<T> src, NativeArray<T> dst, int length)
Parameters
|
Improve this Doc
View Source
CopyFrom(T[])
Declaration
public void CopyFrom(T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
|
|
Improve this Doc
View Source
CopyFrom(NativeArray<T>)
Declaration
public void CopyFrom(NativeArray<T> array)
Parameters
|
Improve this Doc
View Source
CopyTo(T[])
Declaration
public void CopyTo(T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
|
|
Improve this Doc
View Source
CopyTo(NativeArray<T>)
Declaration
public void CopyTo(NativeArray<T> array)
Parameters
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(NativeArray<T>)
Declaration
public bool Equals(NativeArray<T> other)
Parameters
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public NativeArray<T>.Enumerator GetEnumerator()
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
Operators
|
Improve this Doc
View Source
Equality(NativeArray<T>, NativeArray<T>)
Declaration
public static bool operator ==(NativeArray<T> left, NativeArray<T> right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(NativeArray<T>, NativeArray<T>)
Declaration
public static bool operator !=(NativeArray<T> left, NativeArray<T> right)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable<T>.GetEnumerator()
Declaration
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods