Constructs a new NativeSlice from a NativeArray or NativeSlice.
| Parameter | Description |
|---|---|
| array | The NativeArray<T0> to use. |
Constructs a new NativeSlice from a NativeArray.
Constructs a new NativeSlice that provides a view over the memory of the specified NativeArray.
| Parameter | Description |
|---|---|
| array | The NativeArray<T0> to use. |
| start | The index of the first element from the source to include in the slice. |
Constructs a new NativeSlice from a NativeArray, with a defined start index.
Constructs a new NativeSlice that provides a view over the memory of the specified NativeArray, beginning at a specified starting index.
| Parameter | Description |
|---|---|
| array | The NativeArray<T0> to use. |
| start | The index of the first element from the source to include in the slice. |
| length | The number of elements that the new NativeSlice will have. |
Constructs a new NativeSlice of defined length length, from a NativeArray with a defined start index.
Constructs a new NativeSlice that provides a view over a sub-region of the specified NativeArray, beginning at a specified starting index and covering a specific number of elements.
| Parameter | Description |
|---|---|
| slice | The NativeSlice<T0> to use. |
| start | The index of the first element from the source slice to include in the new slice. |
Constructs a new NativeSlice from another NativeSlice, with a defined start index.
Constructs a new NativeSlice that provides a view over the memory of another existing NativeSlice, beginning at a specified starting index.
| Parameter | Description |
|---|---|
| slice | The NativeSlice<T0> to use. |
| start | The index of the first element from the source slice to include in the new slice. |
| length | The number of elements that the new NativeSlice will have. |
Constructs a new NativeSlice of defined length length, from another NativeSlice, with a defined start index.
Constructs a new NativeSlice that provides a view over a defined sub-region of another existing NativeSlice, beginning at a specified starting index and covering an exact number of elements.