System.ZLib.zlibAllocMem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function zlibAllocMem(AppData: Pointer; Items, Size: Cardinal): Pointer;

C++

extern DELPHI_PACKAGE void * __cdecl zlibAllocMem(void * AppData, unsigned Items, unsigned Size);

Properties

Type Visibility Source Unit Parent
function public
System.ZLib.pas
System.ZLib.hpp
System.ZLib System.ZLib

Description

zlibAllocMem allocates a memory block and initializes each byte to zero.

zlibAllocMem returns a pointer to an allocated memory block. The size of the block is equal to Items * Size bytes. Each byte is initialized with zero.

See sample:

function myAllocMem(items , size : cardinal): pointer;
begin
  result:=zlibAllocMem(nil , items, size);
end;

See Also