To fix the other half of #39. We currently return the length of the buffer which is being flushed, rather than the length of the Write which caused the flush. This can result in the bizarre situation of the sum of the return values of many Writes being greater than the number of bytes written.
To fix the other half of #39. We currently return the length of the buffer which is being flushed, rather than the length of the Write which caused the flush. This can result in the bizarre situation of the sum of the return values of many Writes being greater than the number of bytes written.