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.

Clone method

Project: Stream Extension Classes

Unit: PJIStreams

Classes: TPJIStreamWrapper, TPJHandleIStreamWrapper, TPJFileIStream

Applies to: ~>3.0

function Clone(out stm: IStream): HResult; virtual; stdcall;


Method not supported.

In theory, this method creates a new stream object that references the same bytes as the original stream but provides a separate seek pointer to those bytes.

But, because TStream does not support multiple position pointers, implementation of this method is non-trivial. In this implementation Clone is simply a do-nothing stub.