Home » U++ Library support » U++ Core » StringBuffer::SetCount - fuse or a mini bug?
StringBuffer::SetCount - fuse or a mini bug? [message #60608] |
Sun, 02 June 2024 20:59 |
luoganda
Messages: 213 Registered: November 2016
|
Experienced Member |
|
|
For now StringBuffer::SetCount(or Lenght) does the same as Reserve.
GetCount returns 0 after it.
It allocMem but since there is no *cat in StringBuffer::Realloc, pend==pbegin(ep is not set).
Is this meant as a fuse to force to use Cat?
I think it's a bug - since if one wants to do a quick thing SetLength
and later use ~ib on that to fill it - now it can't be done.
For now i am using a workaround with Cat - but it's slower.
|
|
|
Goto Forum:
Current Time: Fri May 09 08:51:37 CEST 2025
Total time taken to generate the page: 0.02929 seconds
|