Method GetReadOnlyNativeArrayHandle
GetReadOnlyNativeArrayHandle<T>(int, int)
Returns a ReadOnlyNativeArray handle on the linear memory data.
Declaration
public NativeArray<T>.ReadOnly GetReadOnlyNativeArrayHandle<T>(int dstCount, int srcOffset = 0) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| int | dstCount | The number of elements in the array. |
| int | srcOffset | The index of the first element in the data. |
Returns
| Type | Description |
|---|---|
| NativeArray<T>.ReadOnly | NativeArray of elements. |
Type Parameters
| Name | Description |
|---|---|
| T | The data type of the elements. |