C++
bool releaseBuffer( Adesk::Int32 nNewLength = -1 );
Description
Use releaseBuffer() to end the use of a buffer allocated by the getBuffer() method. The pointer returned by getBuffer() is invalid after the call to releaseBuffer().
Parameters
Parameters | Description |
---|---|
nNewLength | Input the new length of the AcString.If -1 or any negative value, then the string's length is determined by the null terminator's index. Otherwise, the new length is set to the minimum of nNewLength and the null terminator's index. |
Returns
true if success, false on errors such as invalid length args or no previous call to getBuffer().
Links
Previous Declaration
AutoCAD 2017 through AutoCAD 2024
ACBASE_PORT bool releaseBuffer(int nNewLength = -1);
History
AutoCAD 2025
nNewLength argument now expects an Adesk::Int32 instead of int.