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;
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:
[~>3.0.0] Although you can request more than 2Gb of data to be copied, the implementation of CopyFrom does not support this and will fail with an E_FAIL return value. This happens regardless of the size of the wrapped stream.
[~>3.1] Requests of more than 2Gb of data to be copied are supported.