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.
Project: Stream Extension Classes
Unit: PJStreamWrapper
Class: TPJStreamWrapper
Applies to: ~>3.0
[~>3.0]
procedure SetSize(NewSize: Longint); override;
[~>3.1] [1]
procedure SetSize(const NewSize: Int64); override;
This protected method overrides the do-nothing method of TStream and attempts to set the size of the wrapped stream.
[~>3.1] There are two overloaded versions of the method: one that takes a 32 bit size and one that takes a 64 bit size [1].
If the size of the wrapped stream cannot be changed then SetSize has no effect.
Parameters:
The version of SetSize with the 64 bit integer parameter is included in TPJStreamWrapper only if the library is compiled with Delphi 6 or later. This is because the version of TStream shipped with Delphi 5 and earlier did not include this method.