Name

TMemoryManager Type

Syntax

type
  TMemoryManager = record
    GetMem: function(Size: Integer): Pointer;
    FreeMem: function(P: Pointer): Integer;
    ReallocMem: function(P: Pointer; Size: Integer): Pointer;
  end;

Description

The TMemoryManager type stores the three function pointers needed to implement a memory manager.

Example

See SetMemoryManager for an example.

See Also

GetMemoryManager Procedure, IsMemoryManagerSet Function, PMemoryManager Type, SetMemoryManager Procedure

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.