ReadOnlyMemory2D<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(Memory2D<T>) |
Copies the contents of this ReadOnlyMemory2D<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 ReadOnlyMemory2D<T> into a destination Memory<T> instance. |
CopyTo(Memory2D<T>)
Copies the contents of this ReadOnlyMemory2D<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 ReadOnlyMemory2D<T> instance.
Applies to
CopyTo(Memory<T>)
Copies the contents of this ReadOnlyMemory2D<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
Exceptions
Thrown when destination
is shorter than the source ReadOnlyMemory2D<T> instance.