You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecBase Class > TMtxVecBase Properties > TMtxVecBase.Capacity Property
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecBase.Capacity Property

Sizing the object will not allocate less than Capacity.

Syntax
C#
Visual Basic
public long Capacity;

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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!