Share

AcString::reserve

C++

bool reserve(
    Adesk::UInt32 nCapacity
);

Description

Grows or (possibly) shrinks the buffer to match the requested capacity.

Parameters

Parameters Description
nCapacity Input the number of characters of space needed, not including terminator

Returns

true if the buffer was re-allocated, else false.

Remarks

Shrink requests are ignored.

Links

AcString

Previous Declaration

AutoCAD 2024 and earlier

AcString::reserve@unsigned

History

AutoCAD 2025

nCapacity argument now expects an Adesk::UInt32 instead of unsigned.

Was this information helpful?