Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

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