help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TMemoryManager

Record describing the current memory manager

Declaration

Source position: heaph.inc line 39

type TMemoryManager = record

  NeedLock: Boolean;

  

Does the memory manager require a lock

  Getmem: function(

  

Function called when memory must be allocated on the heap.

  Size: PtrInt

):Pointer;

  Freemem: function(

  

Function called when previously allocated memory can be freed again.

  p: pointer

):PtrInt;

  FreememSize: function(

  

Function called when previously allocated memory with a known size can be freed again.

  p: pointer;

  Size: PtrInt

):PtrInt;

  AllocMem: function(

  

Same as getmem, but additionally clear the allocated memory (filled with 0 bytes).

  Size: PtrInt

):Pointer;

  ReAllocMem: function(

  

Handler called when an allocated memory block should be resized

  var p: pointer;

  Size: PtrInt

):Pointer;

  MemSize: function(

  

Return the size of a memory block.

  p: pointer

):PtrInt;

  GetHeapStatus: function: THeapStatus;

  

Handler called when the heap status must be reported.

  GetFPCHeapStatus: function: TFPCHeapStatus;

  

Handler to get FPC heap status information.

end;

Description

TMemoryManager describes the memory manager. For more information about the memory manager, see the programmer's reference.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505