RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::InstanceSize Method

Returns the size in bytes of each instance of the object type.

Pascal
class function InstanceSize: Longint;
C++
Longint InstanceSize();

System::TObject::InstanceSize indicates how many bytes of memory are required for a class's instance data. System::TObject::InstanceSize is called from methods that allocate and deallocate memory. System::TObject::InstanceSize is not a virtual method, so it cannot be overridden. System::TObject::InstanceSize should be called only when implementing a custom version of System::TObject::NewInstance

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!