Click or drag to resize

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.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public void CopyTo(
	T[] destination,
	int destinationIndex = 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
ExceptionCondition
ArgumentNullExceptiondestination is .
ArgumentOutOfRangeExceptiondestinationIndex is negative or greater than or equal to the length of destination.
ArgumentExceptiondestination does not have enough capacity from destinationIndex to hold Count elements.
See Also