System.TObject.InstanceSize

From RAD Studio VCL Reference
Jump to: navigation, search

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.

See Also

Personal tools
Translations
Newest Version