Skip to content

IOFileComponent.AsSpan Method ​

Overloads ​

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

c#
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.

c#
protected Span<Byte> AsSpan(int start);

View source

Parameters ​

NameTypeDescription
startInt32The 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.

c#
protected Span<Byte> AsSpan(Index startIndex);

View source

Parameters ​

NameTypeDescription
startIndexIndexThe start index.

Returns ​

Span<Byte>

A span over the data from the specified index.