UCOMIStream.CopyTo(UCOMIStream, Int64, IntPtr, IntPtr) 方法

定义

将指定的字节数从流中的当前搜索指针复制到其他流中的当前搜索指针。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::UCOMIStream ^ pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
public void CopyTo (System.Runtime.InteropServices.UCOMIStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
abstract member CopyTo : System.Runtime.InteropServices.UCOMIStream * int64 * nativeint * nativeint -> unit
Public Sub CopyTo (pstm As UCOMIStream, cb As Long, pcbRead As IntPtr, pcbWritten As IntPtr)

参数

pstm
UCOMIStream

对目标流的引用。Reference to the destination stream.

cb
Int64

要从源流复制的字节数。The number of bytes to copy from the source stream.

pcbRead
IntPtr

成功返回时包含从源读取的实际字节数。On successful return, contains the actual number of bytes read from the source.

pcbWritten
IntPtr

成功返回时包含写入到目标的实际字节数。On successful return, contains the actual number of bytes written to the destination.

注解

有关详细信息,请参阅 IStream::CopyTo MSDN library 中的现有文档。For more information, please see the existing documentation for IStream::CopyTo in the MSDN library.

适用于