 | JCOBridgeStreamTCopyTo(T, Int32) Method |
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.
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntaxpublic void CopyTo(
T[] destination,
int destinationIndex = 0
)
Public Sub CopyTo (
destination As T(),
Optional destinationIndex As Integer = 0
)
Parameters
- destination T
- The target array to copy elements into.
- destinationIndex Int32 (Optional)
-
Zero-based index in destination at which copying begins.
Defaults to 0.
Exceptions
See Also