CopyTo method

Project: Stream Extension Classes

Unit: PJIStreams

Classes: TPJIStreamWrapper, TPJHandleIStreamWrapper, TPJFileIStream

Applies to: ~>3.0

function CopyTo(stm: IStream; cb: Largeint; out cbRead: Largeint;
  out cbWritten: Largeint): HResult; virtual; stdcall;

Description

Copies a specified number of bytes from the current seek pointer in the wrapped stream to the current seek pointer in another stream. If the wrapped stream has less than the requested number of bytes available then all remaining bytes in the wrapped stream are copied.

Parameters:

Returns:

Remarks