Closed nemequ closed 9 years ago
Thanks! I'll repro this tonight after work.
Ok, got the problem in the debugger.. crunching away on it.
Thanks a lot for these small repos, they are great!
I've added partial output buffer flushing to the decompressor - testing it now. It fixes your test case, but I want to bang on it a bit more before pushing the fixes.
Excellent, thanks.
If you come up with any good tests for it please consider publishing them; I would definitely be interested in porting them to Squash.
Ok the fixes are checked in. I'll be testing them on Linux and Windows all night.
The zlib flushing support code is the least tested and the trickiest to get right. I'll add another test to exercise this code in both buffered and unbuffered mode.
When I flush a compression stream and send the output to a decompression stream the decompression stream just keeps the data in its buffer instead of immediately making it available (like zlib does), which pretty much destroys the usefulness of flushing.
Test case: