Home » U++ Library support » U++ Core » StringBuffer size [BUG]
Re: StringBuffer size [BUG] [message #19340 is a reply to message #19338] |
Thu, 27 November 2008 20:09   |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
I think it's not a bug. You create a StringBuffer which store 128 chars and they are initialized with FreeFreeFree... to make you know when you use it without being initialized with something. It's easier to debug. Operator << is appending to the end of buffer, so that's why you get FreeFree stuff and also your chars.
If you want to make a StringBuffer initialized for 128 chars and want then to put your chars in it you have to call sb.Clear() to clear the initial content.
Also note that the buffer is filled with FreeFree... just when you have a debug build of your application.
cdabbd745f1234c2751ee1f932d1dd75
|
|
|
Goto Forum:
Current Time: Sun Jun 08 06:08:33 CEST 2025
Total time taken to generate the page: 0.03686 seconds
|