Bearbeiten

Freigeben über


ReadOnlySpan2D<T>.TryGetSpan(ReadOnlySpan<T>) Method

Definition

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

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

Parameters

span
ReadOnlySpan<T>

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

Returns

Whether or not span was correctly assigned.

Applies to