C++
Adesk::UInt32 capacity() const;
Description
Gets the maximum logical length of the current string value that can currently be achieved without growing or reallocating its buffer.
Returns
Number of characters the current buffer can hold.
Remarks
Null terminator is not counted in logical length.
Note:capacity() is always >= length()
Links
Previous Declaration
AutoCAD 2019 through AutoCAD 2024
ACBASE_PORT unsigned capacity() const;
History
AutoCAD 2025
Function now returns Adesk::UInt32 instead of unsigned.