Sign in Join
FPDoc Onlineexperiment

TObject.InstanceSize function

Member of TObjectpublicIn unit System

Return the size of an instance.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.