RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStream.SetSize Method (Int64)

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

Pascal
procedure SetSize(NewSize: Longint); virtual; overload;
procedure SetSize(const NewSize: Int64); virtual; overload;
C++
virtual __fastcall SetSize(Longint NewSize);
virtual __fastcall SetSize(const Int64 NewSize);

SetSize does nothing in TStream. Descendant 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 descendant class. SetSize must therefore be introduced when Size is introduced.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!