ReadOnlyMemory2D<T>.TryGetMemory(ReadOnlyMemory<T>) Method

Definition

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

public bool TryGetMemory (out ReadOnlyMemory<T> memory);
member this.TryGetMemory : ReadOnlyMemory -> bool
Public Function TryGetMemory (ByRef memory As ReadOnlyMemory(Of T)) As Boolean

Parameters

memory
ReadOnlyMemory<T>

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

Returns

Whether or not memory was correctly assigned.

Applies to