ReadOnlyMemory2D<T>.TryGetMemory(ReadOnlyMemory<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.