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

Returns a modifiable C style char array (buffer) of the specified minimum 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.