API Reference > Other Classes > OdString Class > OdString Methods > OdString::preallocate Method
OdString::preallocate Method
Syntax
C++
inline void preallocate(int length);
Parameters 
Description 
int length 
[in] New length of internal buffer. 

Assures the character buffer of this String object is at least the specified size.

This function destroys the existing string contents if any. String length is set to 0.

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