Modifier

Partager via


Span2D<T>.TryGetSpan(Span<T>) Method

Definition

Tries to get a Span<T> instance, if the underlying buffer is contiguous and small enough.

public bool TryGetSpan (out Span<T> span);
member this.TryGetSpan : Span -> bool
Public Function TryGetSpan (ByRef span As Span(Of T)) As Boolean

Parameters

span
Span<T>

The resulting Span<T>, in case of success.

Returns

Whether or not span was correctly assigned.

Applies to