System.SysUtils.TMarshaller.AllocMem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AllocMem(Size: NativeInt): TPtrWrapper;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TMarshaller

Description

Allocates a block of memory.

AllocMem allocates a memory buffer of Size bytes and returns it as a wrapped pointer. The buffer is disposed of when Flush is called or when the record goes out of scope.

See Also