On Wed, Aug 19, 2015 at 2:09 PM, Per Hedbor <p...@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
  • spl... Per Hedbor () @ Pike (-) developers forum
    • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
      • ... Per Hedbor () @ Pike (-) developers forum
        • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
    • ... Arne Goedeke
    • ... Chris Angelico
      • ... Per Hedbor
        • ... Chris Angelico
          • ... Per Hedbor
            • ... Chris Angelico

Reply via email to