On Wed, Aug 19, 2015 at 2:09 PM, Per Hedbor per@hedbor.org wrote:
There is no need to consume or trim the buffer, it is automatically done in output_to. That removes the written data from the start of the buffer. You would need to keep relevant checks, yes, but the current size (except for a check for 0 size) is not one of the needed checks.
Ah cool! That would definitely be the cleanest form of the code, then. I'll add it in and give it a try.
ChrisA