Delphi What You Need To Know About The InstanceSize Method

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What You Need To Know About The InstanceSize Method
By Muhammad Azizul Hakim September 9, 2021

What is DelphiVCL.Application.InstanceSize?​

InstanceSize or DelphiVCL.Application.InstanceSize method 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.

What are the methods and built-in properties of the DelphiVCL.Application.InstanceSize?​

Let’s browse all the methods and built-in properties of the DelphiVCL.Application.InstanceSize using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.InstanceSize)
See the responses in our Windows command prompt:
1631176953127.png
You can also read short information about the DelphiVCL.Application.InstanceSize using the print() command:
Python:
print(DelphiVCL.Application.InstanceSize)
print(DelphiVCL.Application.InstanceSize.__doc__)
See the responses in our Windows command prompt:
1631176995481.png