ReleaseBuffer
Use ReleaseBuffer to end use of a buffer allocated by GetBuffer.
void ReleaseBuffer( int nNewLength = -1 )
None.
EX1
void string_ReleaseBuffer_ex1() { string str = "abcdefg"; char *p = str.GetBuffer( 20 ); p[3] = 'D'; str.ReleaseBuffer(); out_str( str ); //output should be "abcDefg" }
string::GetBuffer
origin.h