 | CopyTo(T, Int32) |
Copies all elements into destination starting at
destinationIndex.
On .NET 5+ and .NET Standard 2.1 this operation is backed by
ReadOnlySpanT and dispatches to SIMD hardware intrinsics
with no intermediate allocation.
On .NET Framework the copy is performed via MemoryCopy(Void*, Void*, Int64, Int64),
which uses the OS-level memcpy implementation and is SIMD-accelerated
on all supported platforms without requiring any additional dependency.
In both cases no intermediate managed allocation occurs.
|