Closed vpzomtrrfrt closed 5 months ago
Good point, it is indeed an issue with the implementation; I initially did this intentionally as I did not expect anyone to have a use case for this - as this would require reallocating buffer, which would be more efficient if avoided. It is fairly easy to correct, and indeed should be either corrected or at least documented.
Can you provide more info on how you are using xwt
that you need to change the buffer size dynamically?
I'm using async-bincode, which does that internally
@vpzomtrrfrt could you please try the code at #124? It should fix the issue.
For example, by changing this test:
It now fails with:
Which seems to imply the internal buffer was not changed.
Making the second buffer smaller also fails, with: