Memory2D<T>.TryCopyTo Method

Definition

Overloads

TryCopyTo(Memory2D<T>)

Attempts to copy the current Memory2D<T> instance to a destination Memory2D<T>. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.

TryCopyTo(Memory<T>)

Attempts to copy the current Memory2D<T> instance to a destination Memory<T>.

TryCopyTo(Memory2D<T>)

Attempts to copy the current Memory2D<T> instance to a destination Memory2D<T>. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.

public bool TryCopyTo (Microsoft.Toolkit.HighPerformance.Memory2D<T> destination);
member this.TryCopyTo : Microsoft.Toolkit.HighPerformance.Memory2D<'T> -> bool
Public Function TryCopyTo (destination As Memory2D(Of T)) As Boolean

Parameters

destination
Memory2D<T>

The target Memory2D<T> of the copy operation.

Returns

Whether or not the operation was successful.

Applies to

TryCopyTo(Memory<T>)

Attempts to copy the current Memory2D<T> instance to a destination Memory<T>.

public bool TryCopyTo (Memory<T> destination);
member this.TryCopyTo : Memory<'T> -> bool
Public Function TryCopyTo (destination As Memory(Of T)) As Boolean

Parameters

destination
Memory<T>

The target Memory<T> of the copy operation.

Returns

Whether or not the operation was successful.

Applies to