On Sat Jun 14 01:35:28 2025 +0000, Yuxuan Shui wrote:
Did you mean call `strstreambuf_doallocate` directly instead of `strstreambuf_overflow`? We can do that but I feel if we do that we can't rule out the possibility that `strstreambuf_overflow` may call `doallocate` multiple times. (i.e. `doallocate` does one `increase` increment, but `overflow` does multiple).
I was not sure if there's value in testing that.It's possible to set the pointers using exported functions so the test shows limitation of native implementation. I think I'm good with current approach.