Daiki Ueno writes:
>> * One could perhaps use index == 0 instead of index == block_size for
>> the case that there is no buffered data. But the current convention
>> does make your "if (length <= left)" nice and simple.
>
> I agree that the current convention is a bit awkward, so in the
Niels Möller writes:
> Daiki Ueno writes:
>
>> Yes, this makes the code a lot simpler. I'm attaching an updated patch.
>
> Thanks, looks good to me. Some details I'm thinking about that might be
> improvements:
>
> * One could perhaps use index == 0 instead of index == block_size for
> the