ReadOnlySpan<T>.CopyTo(Span<T>) ReadOnlySpan<T>.CopyTo(Span<T>) ReadOnlySpan<T>.CopyTo(Span<T>) ReadOnlySpan<T>.CopyTo(Span<T>) Method

定義

この ReadOnlySpan<T> の内容をコピー先 Span<T> にコピーします。Copies the contents of this ReadOnlySpan<T> into a destination Span<T>.

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

パラメーター

destination
Span<T> Span<T> Span<T> Span<T>

項目のコピー先のスパン。The span to copy items into.

例外

destination はソース ReadOnlySpan<T> より短くなります。destination is shorter than the source ReadOnlySpan<T>.

注釈

場合、sourcedestinationの全体が重なるsourceにコピーする前に一時的な場所にコピー元として処理がdestinationします。If the source and destination overlap, the entirety of source is handled as if it was copied to a temporary location before it is copied to destination.

適用対象