NativeSlice<T>
struct in Unity.Collections · UnityEngine.CoreModule
Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix
A strided view of native memory (a range of a NativeArray, or a field of each element).
Constructors 1
NativeSlice(NativeArray<T> array)NativeSlice(NativeArray<T> array, int start)NativeSlice(NativeArray<T> array, int start, int length)NativeSlice(NativeSlice<T> slice, int start)NativeSlice(NativeSlice<T> slice, int start, int length)Properties 3
Methods 8
void CopyFrom(NativeSlice<T> slice)void CopyFrom(T[] array)void CopyTo(NativeArray<T> array)void CopyTo(T[] array)bool Equals(NativeSlice<T> other)bool Equals(object? obj)IEnumerator<T> GetEnumerator()int GetHashCode()NativeSlice<U> SliceConvert<U>()NativeSlice<U> SliceWithStride<U>(int offset)NativeSlice<U> SliceWithStride<U>()T[] ToArray()Operators 3
static implicit operator NativeSlice<T>(NativeArray<T> array)static bool operator !=(NativeSlice<T> left, NativeSlice<T> right)static bool operator ==(NativeSlice<T> left, NativeSlice<T> right)Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.