System.TObject.InstanceSize
Delphi
class function InstanceSize: Integer; inline;
C++
__classmethod int __fastcall InstanceSize();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas systobj.h |
System | 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.