RAD Studio VCL Reference
TObject::InstanceSize Method

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

class function InstanceSize: Longint;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!