System.TObject.InstanceSize
From RAD Studio VCL Reference
Contents |
Delphi Information
From System.pas
class function InstanceSize(): Integer;
Unit: System
Type: method
Visibility: public
Member Of: TObject
C++ Information
From System.hpp
__classmethod long __fastcall InstanceSize(void);
Unit: System
Type: method
Visibility: public
Member Of: TObject
Description
Returns the size in bytes of each instance of the object type.
InstanceSize indicates how many bytes of memory are required for a class's instance data. InstanceSize is called from methods that allocate and deallocate memory. InstanceSize is not a virtual method, so it cannot be overridden. InstanceSize should be called only when implementing a custom version of NewInstance.