Sign in Join
FPDoc Onlineexperiment

MemSize function

In unit System

Return the size of a memory block.

Declaration

pascal
function MemSize(p: pointer): PtrUInt

Description

MemSize returns the size of a memory block on the heap.

Errors

Passing an invalid pointer may lead to run-time errors (access violations).

See also

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