Method ToReadOnlySpan
ToReadOnlySpan<T>(int, int)
Returns a ReadOnlySpan on the linear memory data.
Declaration
public ReadOnlySpan<T> ToReadOnlySpan<T>(int dstCount, int srcOffset = 0) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
int | dstCount | The number of elements to span. |
int | srcOffset | The index of the first element in the data. |
Returns
Type | Description |
---|---|
ReadOnlySpan<T> | Span of elements. |
Type Parameters
Name | Description |
---|---|
T | The data type of the elements. |