IStream.CopyTo(IStream, Int64, IntPtr, IntPtr) Method

Definition

Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

public:
 void CopyTo(System::Runtime::InteropServices::ComTypes::IStream ^ pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
public void CopyTo (System.Runtime.InteropServices.ComTypes.IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
abstract member CopyTo : System.Runtime.InteropServices.ComTypes.IStream * int64 * nativeint * nativeint -> unit
Public Sub CopyTo (pstm As IStream, cb As Long, pcbRead As IntPtr, pcbWritten As IntPtr)

Parameters

pstm
IStream

A reference to the destination stream.

cb
Int64

The number of bytes to copy from the source stream.

pcbRead
IntPtr

nativeint

On successful return, contains the actual number of bytes read from the source.

pcbWritten
IntPtr

nativeint

On successful return, contains the actual number of bytes written to the destination.

Remarks

For more information, see the existing documentation for IStream::CopyTo.

Applies to