Editar

Compartilhar via


Span2D<T>.CopyTo Method

Definition

Overloads

CopyTo(Span<T>)

Copies the contents of this Span2D<T> into a destination Span<T> instance.

CopyTo(Span2D<T>)

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

CopyTo(Span<T>)

Copies the contents of this Span2D<T> into a destination Span<T> instance.

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

Parameters

destination
Span<T>

The destination Span<T> instance.

Exceptions

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

Applies to

CopyTo(Span2D<T>)

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

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

Parameters

destination
Span2D<T>

The destination Span2D<T> instance.

Exceptions

Thrown when destination does not have the same shape as the source Span2D<T> instance.

Applies to