Method GetReadOnlyNativeArrayHandle
GetReadOnlyNativeArrayHandle<T>(int, int)
Returns the data as a NativeArray
constrained to read only operations.
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. |
int | srcOffset | The index of the first element. |
Returns
Type | Description |
---|---|
NativeArray<T>.ReadOnly | The read only native array of the data. |
Type Parameters
Name | Description |
---|---|
T | The type of the data. |