In unit System
System
Return the size of a memory block.
function MemSize(p: pointer): PtrUInt
MemSize
Passing an invalid pointer may lead to run-time errors (access violations).
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.