ImmutableArray<T>.AsSpan Method

Definition

Overloads

AsSpan(Range)

Creates a span over the portion of the current ImmutableArray<T> based on the specified range.

AsSpan(Int32, Int32)

Creates a ReadOnlySpan<T> over the portion of the current ImmutableArray<T>, beginning at a specified position for a specified length.

AsSpan()

Creates a new read-only span over this immutable array.

AsSpan(Range)

Source:
ImmutableArray_1.netcoreapp.cs
Source:
ImmutableArray_1.netcoreapp.cs
Source:
ImmutableArray_1.netcoreapp.cs
Source:
ImmutableArray_1.netcoreapp.cs

Creates a span over the portion of the current ImmutableArray<T> based on the specified range.

public:
 ReadOnlySpan<T> AsSpan(Range range);
public ReadOnlySpan<T> AsSpan (Range range);
member this.AsSpan : Range -> ReadOnlySpan<'T>
Public Function AsSpan (range As Range) As ReadOnlySpan(Of T)

Parameters

range
Range

A range in the current ImmutableArray<T>.

Returns

A span representation of the ImmutableArray<T>.

Applies to

AsSpan(Int32, Int32)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Creates a ReadOnlySpan<T> over the portion of the current ImmutableArray<T>, beginning at a specified position for a specified length.

public:
 ReadOnlySpan<T> AsSpan(int start, int length);
public ReadOnlySpan<T> AsSpan (int start, int length);
member this.AsSpan : int * int -> ReadOnlySpan<'T>
Public Function AsSpan (start As Integer, length As Integer) As ReadOnlySpan(Of T)

Parameters

start
Int32

The index at which to begin the span.

length
Int32

The number of items in the span.

Returns

The ReadOnlySpan<T> representation of the ImmutableArray<T>.

Applies to

AsSpan()

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Creates a new read-only span over this immutable array.

public:
 ReadOnlySpan<T> AsSpan();
public ReadOnlySpan<T> AsSpan ();
member this.AsSpan : unit -> ReadOnlySpan<'T>
Public Function AsSpan () As ReadOnlySpan(Of T)

Returns

The read-only span representation of this immutable array.

Applies to