API Reference > Other Classes > OdAnsiString Class > OdAnsiString Methods > OdAnsiString::getBufferSetLength Method
OdAnsiString::getBufferSetLength Method
Syntax
C++
char* getBufferSetLength(int length);
Parameters 
Description 
int length 
[in] buffer length. 

Returns a modifiable C style char array (buffer) of of the specified length for this String object.

releaseBuffer() should be called before using any other OdAnsiString methods. 

The pointer returned by this function is not valid after releaseBuffer() is called.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.