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

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

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

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

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