You are here: Symbol Reference > MtxVecBase Namespace > Classes > TMtxVecBase Class > public > TMtxVecBase.Capacity Property
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecBase.Capacity Property

Sizing the object will not allocate less than Capacity.

Pascal
property Capacity: Int64;

Capacity equals CapacityInElements. Rounded up to multiple of 16bytes. 

After changing Capacity, do not assume that any existing values will be preserved. Any memory re-allocation needed happens at the next call to Size. Capacity cannot be an odd number. When setting an odd number, the Capacity will be increased to the next even number. 

If Capacity specified is less than object cache size, then the value of Capacity is not considered.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!