ReadOnlySpan2D<T>.CopyTo 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.
Overloads
CopyTo(Span<T>) |
Copies the contents of this ReadOnlySpan2D<T> into a destination Span<T> instance. |
CopyTo(Span2D<T>) |
Copies the contents of this ReadOnlySpan2D<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 ReadOnlySpan2D<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
Exceptions
Thrown when destination
is shorter than the source ReadOnlySpan2D<T> instance.
Applies to
CopyTo(Span2D<T>)
Copies the contents of this ReadOnlySpan2D<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
Exceptions
Thrown when destination
does not have the same shape as the source ReadOnlySpan2D<T> instance.