Skip to content

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();

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.

public ReadOnlySpan<Byte> AsReadOnlySpan(int start);

View source

Parameters

Name Type Description
start Int32 The 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.

public ReadOnlySpan<Byte> AsReadOnlySpan(Index startIndex);

View source

Parameters

Name Type Description
startIndex Index The start index.

Returns

ReadOnlySpan<Byte>

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