Commit Graph

3 Commits

Author SHA1 Message Date
Jeffrey Bush b3381fb014 Fixed bugs with the new streamable interface (never returning STREAM_END) and the testing framework not setting the right flag along with various other small bug fixes and optimizations.
Also added detailed descriptions to mscomp.h about when the various return codes are used, etc.

Note: LZNT1 compression streaming is still bugged due to an experimental dictionary in development.
2015-03-03 17:41:17 -08:00
Jeffrey Bush 8c2b0a8c6b Removed xxx_uncompressed_size functions (since they were not constant-time and basically did decompression without writing).
Removed finish argument from xxx_inflate as it is not used in frameworks like this and was only being used for error detection (which was moved to xxx_inflate_end).

Changed finish argument of xxx_deflate to flush, which supports MSCOMP_NO_FLUSH (equivilent to old finish=false), MSCOMP_FINISH (equivilent to old finish=true), and MSCOMP_FLUSH which will try to get all current read input into the output and not buffer it (similar to finishing except the stream is not terminated).
2015-02-12 17:01:30 -08:00
Jeffrey Bush 62e73cc836 Reorganized code some more to allow it to be easier to bundle into other libraries and fixed some includes. 2015-02-12 12:29:53 -08:00