[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazFileCache' (#lazutils)

TFileStateCache.CalcMemSize

Gets the memory size needed for the class instance and its data.

Declaration

Source position: lazfilecache.pas line 91

public function TFileStateCache.CalcMemSize: PtrUint;

Function result

Memory size needed to store the class instance and its data.

Description

CalcMemSize is a name function used to get the amount of memory needed for the class instance, including data stored in its properties. The return value is a sum of the InstanceSize and the lengths for the String values in FileName and PhysicalFilename.

See also

TFileStateCacheItem.Filename

  

Name for the file or directory in the cache item.

TFileStateCacheItem.PhysicalFilename

  

Physical name for the file or directory in the cache item.

TObject.InstanceSize


Version 4.0 Generated 2025-05-03 Home