Struct NativeSlice<T>
Assembly: UnityEngine.dll
Syntax
public struct NativeSlice<T> : IEnumerable<T>, IEnumerable, IEquatable<NativeSlice<T>> where T : struct
Type Parameters
Constructors
|
Improve this Doc
View Source
NativeSlice(NativeArray<T>)
Declaration
public NativeSlice(NativeArray<T> array)
Parameters
|
Improve this Doc
View Source
NativeSlice(NativeArray<T>, Int32)
Declaration
public NativeSlice(NativeArray<T> array, int start)
Parameters
|
Improve this Doc
View Source
NativeSlice(NativeArray<T>, Int32, Int32)
Declaration
public NativeSlice(NativeArray<T> array, int start, int length)
Parameters
|
Improve this Doc
View Source
NativeSlice(NativeSlice<T>, Int32)
Declaration
public NativeSlice(NativeSlice<T> slice, int start)
Parameters
|
Improve this Doc
View Source
NativeSlice(NativeSlice<T>, Int32, Int32)
Declaration
public NativeSlice(NativeSlice<T> slice, int start, int length)
Parameters
Properties
|
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
|
Improve this Doc
View Source
Stride
Declaration
public int Stride { get; }
Property Value
Methods
|
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(NativeSlice<T>)
Declaration
public void CopyFrom(NativeSlice<T> slice)
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
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(NativeSlice<T>)
Declaration
public bool Equals(NativeSlice<T> other)
Parameters
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public NativeSlice<T>.Enumerator GetEnumerator()
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
SliceConvert<U>()
Declaration
public NativeSlice<U> SliceConvert<U>()
where U : struct
Returns
Type Parameters
|
Improve this Doc
View Source
SliceWithStride<U>()
Declaration
public NativeSlice<U> SliceWithStride<U>()
where U : struct
Returns
Type Parameters
|
Improve this Doc
View Source
SliceWithStride<U>(Int32)
Declaration
public NativeSlice<U> SliceWithStride<U>(int offset)
where U : struct
Parameters
Type |
Name |
Description |
Int32 |
offset |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
Operators
|
Improve this Doc
View Source
Equality(NativeSlice<T>, NativeSlice<T>)
Declaration
public static bool operator ==(NativeSlice<T> left, NativeSlice<T> right)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(NativeArray<T> to NativeSlice<T>)
Declaration
public static implicit operator NativeSlice<T>(NativeArray<T> array)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(NativeSlice<T>, NativeSlice<T>)
Declaration
public static bool operator !=(NativeSlice<T> left, NativeSlice<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