Sign in Join
FPDoc Onlineexperiment

TFileStateCache.CalcMemSize function

Member of TFileStateCachepublicIn unit LazFileCache

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

Declaration

pascal
function CalcMemSize: PtrUint

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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.