Skip to content

IOFileComponent.AsSpan Method

Overloads

Name Description
AsSpan() Returns the data as a writable span.
AsSpan(Int32) Returns the data as a writable span starting at the specified index.
AsSpan(Index) Returns the data as a writable span starting at the specified index.

AsSpan()

Returns the data as a writable span.

protected Span<Byte> AsSpan();

View source

Returns

Span<Byte>

A span over the data.

AsSpan(Int32)

Returns the data as a writable span starting at the specified index.

protected Span<Byte> AsSpan(int start);

View source

Parameters

Name Type Description
start Int32 The start index.

Returns

Span<Byte>

A span over the data from the specified index.

AsSpan(Index)

Returns the data as a writable span starting at the specified index.

protected Span<Byte> AsSpan(Index startIndex);

View source

Parameters

Name Type Description
startIndex Index The start index.

Returns

Span<Byte>

A span over the data from the specified index.