System.InitializeArray

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InitializeArray(p: Pointer; typeInfo: Pointer; elemCount: NativeUInt);

C++

extern DELPHI_PACKAGE void __fastcall InitializeArray(void * p, void * typeInfo, NativeUInt elemCount);

Properties

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

Description

Initializes the elements of a dynamic array.

Use InitializeArray to initialize the elements of a dynamic array to their default values. InitializeArray is only useful for dynamic arrays that contain managed type elements such as String or IInterface. In all other cases, InitializeArray does nothing. The following table describes the parameters expected by the InitializeArray routine.



Parameter Description

p

The pointer to the heap where the array data is stored.

typeInfo

RTTI information describing the array. Use the TypeInfo operator to obtain this information.

elemCount

The number of elements of the array to initialize.



See Also