Sign in Join
FPDoc Onlineexperiment

DynArrayIndex function

In unit System

Return pointer to indicated element.

Declaration

pascal
function DynArrayIndex(a: Pointer; 
 const indices: Array of SizeInt = Int64; 
 typeInfo: Pointer): Pointer

Description

DynArrayIndex returns a pointer to the element indicated by indices in dynamic array a with type information typinfo. The length of indices must equal the number of dimensions of the array (as returned by DynArrayDim).

Errors

No bounds checking is performed, it is therefor possible to get an access violation if one of the indexes is out of range.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.