Click or drag to resize

JCOBridgeStreamTCopyTo Method

Overload List
 NameDescription
Public methodCopyTo(Stream)Reads the bytes from the current stream and writes them to another stream.
Public methodCopyTo(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.

Public methodCopyTo(Stream, Int32)Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.
Top
See Also