System.CopyArray

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure CopyArray(Dest, Source, TypeInfo: Pointer; Count: NativeInt);

C++

extern DELPHI_PACKAGE void __fastcall CopyArray(void * Dest, void * Source, void * TypeInfo, NativeInt Count);

Properties

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

Description

Copies an array whose elements' type is specified by the TypeInfo variable.

The parameters of CopyArray are:

Parameter Description
Dest Destination array.
Source Source array.
TypeInfo Type information of the source array elements.

The TypeInfo variable is the general Pointer type pointer to a TTypeInfo type data. CopyArray internally typecasts TypeInfo to the TTypeInfo type. The Kind field of TTypeInfo is of type TTypeKind. TTypeKind is an enumerated type that classifies the possible types of elements.
CopyArray supports the following type kinds:

  • tkLString--an AnsiString type
  • tkWString--a WideString type
  • tkUString--a WideString type
  • tkVariant--a Variant type
  • tkArray--a static array type
  • tkDynArray--a dynamic array type
  • tkRecord--a record type
  • tkInterface--an interface type
Count Number of elements in the source array.

See Also