Skip to content

IOFileComponent.AsReadOnlySpan Method ​

Overloads ​

NameDescription
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.

c#
public ReadOnlySpan<Byte> AsReadOnlySpan();

View source

Returns ​

ReadOnlySpan<Byte>

A read-only span over the data.

AsReadOnlySpan(Int32) ​

Returns the data as a read-only span starting at the specified index.

c#
public ReadOnlySpan<Byte> AsReadOnlySpan(int start);

View source

Parameters ​

NameTypeDescription
startInt32The start index.

Returns ​

ReadOnlySpan<Byte>

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.

c#
public ReadOnlySpan<Byte> AsReadOnlySpan(Index startIndex);

View source

Parameters ​

NameTypeDescription
startIndexIndexThe start index.

Returns ​

ReadOnlySpan<Byte>

A read-only span over the data from the specified index.