[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)


Create packed array from normal array


Source position: system.fpd line 76

procedure Pack(

  const A: UnpackedArrayType;

  StartIndex: TIndexType;

  out Z: PackedArrayType



Pack will copy the elements of an unpacked array (A) to a packed array (Z). It will start the copy at the index denoted by StartIndex. The type of the index variable StartIndex must match the type of the index of A. The elements are always transferred to the beginning of the packed array Z. (i.e. it starts at Low(Z)).

Obviously, the type of the elements of the arrays A and Z must match.

See also



Create unpacked array from packed array

Documentation generated on: Mar 17 2017