API:System.Classes.THandleStream.SetSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetSize(NewSize: Longint); override;
procedure SetSize(const NewSize: Int64); override;

C++

virtual void __fastcall SetSize(int NewSize)/* overload */;
virtual void __fastcall SetSize(const __int64 NewSize)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes THandleStream

Description

Provides a placeholder for a method to change the size of the streamed resource.

System.Classes.THandleStream.SetSize inherits from System.Classes.TStream.SetSize. All content below this line refers to System.Classes.TStream.SetSize.

Provides a placeholder for a method to change the size of the streamed resource.

SetSize does nothing in TStream. Descendent stream classes can override this method to set the Size property of their objects. SetSize is the write procedure for the Size property.

Note: SetSize is introduced in TStream, even though it does nothing, because it is not possible to change the definition of a property in a descendent class. SetSize must therefore be introduced when Size is introduced.