Sign in Join
FPDoc Onlineexperiment

PackVarCreation variable

In unit Variants

Size to use when creating an array of integers.

Declaration

pascal
PackVarCreation: Boolean = True

Description

PackVarCreation determines what to do when a variant array is created for elements with an integer type (varSmallint, varByte and the like). A value of False means the array will contain varInteger elements. This can result in better memory alignment. When PackVarCreation is True then the smallest possible size is selected for the elements.

See also

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