IOFileComponent.AsReadOnlySpan Method
Overloads
| Name | Description |
|---|---|
AsReadOnlySpan() |
Returns the data as a read-only span. |
AsReadOnlySpan(Int32) |
Returns the data as a read-only span starting at the specified index. |
AsReadOnlySpan(Index) |
Returns the data as a read-only span starting at the specified index. |
AsReadOnlySpan()
Returns the data as a read-only span.
public ReadOnlySpan<Byte> AsReadOnlySpan();
Returns
A read-only span over the data.
AsReadOnlySpan(Int32)
Returns the data as a read-only span starting at the specified index.
public ReadOnlySpan<Byte> AsReadOnlySpan(int start);
Parameters
| Name | Type | Description |
|---|---|---|
start |
Int32 |
The start index. |
Returns
A read-only span over the data from the specified index.
AsReadOnlySpan(Index)
Returns the data as a read-only span starting at the specified index.
public ReadOnlySpan<Byte> AsReadOnlySpan(Index startIndex);
Parameters
| Name | Type | Description |
|---|---|---|
startIndex |
Index |
The start index. |
Returns
A read-only span over the data from the specified index.