Skip to content

TObject.InstanceSize

Return the size of an instance.

Declaration

Source position: objpash.inc line 225

public 
  class function InstanceSize : SizeInt;

Description

InstanceSize returns the number of bytes an instance takes in memory. This is Just the memory occupied by the class structure, and does not take into account any additional memory that might be allocated by the constructor of the class.

Errors

None.

See also

Name Description
ClassInfo Return a pointer to the type information for this class.
ClassName Return the current class name.
ClassType Return a "class of" pointer for the current class
InitInstance Initialize a new class instance.