Method AsReadOnlySpan
AsReadOnlySpan<T>(int, int)
Returns the data as a ReadOnlySpan
.
Declaration
public ReadOnlySpan<T> AsReadOnlySpan<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 |
---|---|
ReadOnlySpan<T> | The span of the data. |
Type Parameters
Name | Description |
---|---|
T | The type of the data. |