ImGuiTextBuffer handle on which this method operates.
size
number
New text length in bytes, excluding the NUL terminator.
Returns
void
Remarks
Calling resize(0) empties the string without freeing the buffer, like
ImVector.resize(0). A nonzero size changes the text length and preserves
its null terminator.
Resize the text buffer.