Table of Contents

Method TryCopyTo

Namespace
Zyl.ExSpans
Assembly
ExSpans.Core.dll

TryCopyTo(ExSpan<T>)

Try copies the contents of this read-only span into destination span. If the source and destinations overlap, this method behaves as if the original values in a temporary location before the destination is overwritten (尝试将此只读跨度的内容复制到目标跨度. 如果源和目标重叠, 则此方法的行为就像覆盖目标之前临时位置中的原始值一样).

public bool TryCopyTo(ExSpan<T> destination)

Parameters

destination ExSpan<T>

The destination span (目标跨度).

Returns

bool

true if the copy operation succeeded; otherwise, false (如果复制操作已成功,则为 true;否则,为 false).