Editar

Compartilhar via


Memory2D<T>.CopyTo Method

Definition

Overloads

CopyTo(Memory2D<T>)

Copies the contents of this Memory2D<T> into a destination Memory2D<T> instance. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.

CopyTo(Memory<T>)

Copies the contents of this Memory2D<T> into a destination Memory<T> instance.

CopyTo(Memory2D<T>)

Copies the contents of this Memory2D<T> into a destination Memory2D<T> instance. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.

public void CopyTo (Microsoft.Toolkit.HighPerformance.Memory2D<T> destination);
member this.CopyTo : Microsoft.Toolkit.HighPerformance.Memory2D<'T> -> unit
Public Sub CopyTo (destination As Memory2D(Of T))

Parameters

destination
Memory2D<T>

The destination Memory2D<T> instance.

Exceptions

Thrown when destination is shorter than the source Memory2D<T> instance.

Applies to

CopyTo(Memory<T>)

Copies the contents of this Memory2D<T> into a destination Memory<T> instance.

public void CopyTo (Memory<T> destination);
member this.CopyTo : Memory<'T> -> unit
Public Sub CopyTo (destination As Memory(Of T))

Parameters

destination
Memory<T>

The destination Memory<T> instance.

Exceptions

Thrown when destination is shorter than the source Memory2D<T> instance.

Applies to