Edit

Share via


Memory2D<T>.TryGetMemory(Memory<T>) Method

Definition

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

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

Parameters

memory
Memory<T>

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

Returns

Whether or not memory was correctly assigned.

Applies to