summaryrefslogtreecommitdiff
path: root/zlib.h
Commit message (Collapse)AuthorAgeFilesLines
* zlib 1.2.13HEADv1.2.13masterMark Adler2022-10-121-5/+5
|
* Minor formatting improvements.Mark Adler2022-10-051-1/+1
| | | | No code changes.
* Fix some typos.Mark Adler2022-08-231-5/+5
| | | | No code changes.
* Change version number on develop branch to 1.2.12.1.Mark Adler2022-03-271-4/+4
|
* zlib 1.2.12v1.2.12Mark Adler2022-03-271-7/+7
|
* Clarify gz* function interfaces, referring to parameter names.Mark Adler2020-08-311-77/+76
|
* Explicitly note that the 32-bit check values are 32 bits.Mark Adler2019-04-051-5/+7
|
* Speed up software CRC-32 computation by a factor of 1.5 to 3.Mark Adler2018-12-261-12/+10
| | | | | | | | Use the interleaved method of Kadatch and Jenkins in order to make use of pipelined instructions through multiple ALUs in a single core. This also speeds up and simplifies the combination of CRCs, and updates the functions to pre-calculate and use an operator for CRC combination.
* Add crc32_combine_gen() and crc32_combine_op() for fast combines.Mark Adler2018-11-041-0/+22
| | | | | | When the same len2 is used repeatedly, it is faster to use crc32_combine_gen() to generate an operator, that is then used to combine CRCs with crc32_combine_op().
* Correct the initialization requirements for deflateInit2().Mark Adler2018-01-311-2/+1
|
* Emphasize the need to continue decompressing gzip members.Mark Adler2018-01-081-3/+5
|
* Make the names in functions declarations identical to definitions.Mark Adler2017-10-121-1/+1
|
* Permit a deflateParams() parameter change as soon as possible.Mark Adler2017-02-151-5/+6
| | | | | | | | | This commit allows a parameter change even if the input data has not all been compressed and copied to the application output buffer, so long as all of the input data has been compressed to the internal pending output buffer. This also allows an immediate deflateParams change so long as there have been no deflate calls since initialization or reset.
* Cygwin does not have _wopen(), so do not create gzopen_w() there.Mark Adler2017-01-161-1/+1
|
* Change version number to 1.2.11.1.Mark Adler2017-01-151-4/+4
|
* zlib 1.2.11v1.2.11Mark Adler2017-01-151-5/+5
|
* Permit immediate deflateParams changes before any deflate input.Mark Adler2017-01-151-4/+5
| | | | | | | This permits deflateParams to change the strategy and level right after deflateInit, without having to wait until a header has been written. The parameters can be changed immediately up until the first deflate call that consumes any input data.
* Change version number to 1.2.10.1.Mark Adler2017-01-151-4/+4
|
* zlib 1.2.10v1.2.10Mark Adler2017-01-021-5/+5
|
* Minor edits and clarifications of comments.Mark Adler2017-01-011-7/+8
|
* Change version number to zlib 1.2.9.1.Mark Adler2017-01-011-5/+5
|
* zlib 1.2.9v1.2.9Mark Adler2016-12-311-6/+6
|
* Add crc32_z() and adler32_z() functions with size_t lengths.Mark Adler2016-12-311-0/+12
|
* Fix init macros to use z_ prefix when requested.Mark Adler2016-12-301-13/+29
|
* Add deflateGetDictionary() function.Mark Adler2016-12-301-0/+22
| | | | | Per request, but its utility is likely to be very limited. See the comments in zlib.h.
* Add gzfwrite(), duplicating the interface of fwrite().Mark Adler2016-12-041-0/+14
|
* Add gzfread(), duplicating the interface of fread().Mark Adler2016-12-041-1/+29
|
* Clean up gz* function return values.Mark Adler2016-12-041-12/+14
| | | | | | | In some cases the return values did not match the documentation, or the documentation did not document all of the return values. gzprintf() now consistently returns negative values on error, which matches the behavior of the stdio fprintf() function.
* Assure that deflateParams() will not switch functions mid-block.Mark Adler2016-12-041-17/+18
| | | | | | | This alters the specification in zlib.h, so that deflateParams() will not change any parameters if there is not enough output space in the event that a block is emitted in order to allow switching the compression function.
* Add uncompress2() function, which returns the input size used.Mark Adler2016-12-041-1/+9
|
* Minor edits to the documentation in source file contents.Mark Adler2016-12-041-90/+106
|
* Fix some typos.Mark Adler2016-10-301-2/+2
|
* Document the rejection of 256-byte window requests in zlib.h.Mark Adler2016-10-241-0/+4
|
* Avoid recursive gzgetc() macro call.Mark Adler2016-10-141-2/+2
| | | | | Recursive macro calls are normally caught by the preprocessor and avoided. This commit avoids the possibility of a problem entirely.
* Clean up type conversions.Mark Adler2016-10-111-0/+1
|
* Remove dummy structure declarations for old buggy compilers.Mark Adler2016-09-211-5/+0
| | | | | | | | | | | | | | While woolly mammoths still roamed the Earth and before Atlantis sunk into the ocean, there were C compilers that could not handle forward structure references, e.g. "struct name;". zlib dutifully provided a work-around for such compilers. That work-around is no longer needed, and, per the recommendation of a security audit of the zlib code by Trail of Bits and TrustInSoft, in support of the Mozilla Foundation, should be removed since what a compiler will do with this is technically undefined. From the report: "there is no telling what interactions the bug could have in the future with link-time optimizations and type-based alias analyses, both features that are present (but not default) in clang."
* Add option to not compute or check check values.Mark Adler2016-09-201-0/+1
| | | | | | | | | | | | | | | | | | The undocumented (except in these commit comments) function inflateValidate(strm, check) can be called after an inflateInit(), inflateInit2(), or inflateReset2() with check equal to zero to turn off the check value (CRC-32 or Adler-32) computation and comparison. Calling with check not equal to zero turns checking back on. This should only be called immediately after the init or reset function. inflateReset() does not change the state, so a previous inflateValidate() setting will remain in effect. This also turns off validation of the gzip header CRC when present. This should only be used when a zlib or gzip stream has already been checked, and repeated decompressions of the same stream no longer need to be validated.
* Clean up portability for shifts and integer sizes.Mark Adler2015-09-051-1/+1
|
* Align deflateParams() and its documentation in zlib.h.Mark Adler2015-08-021-12/+26
| | | | | | | | This updates the documentation to reflect the behavior of deflateParams() when it is not able to compress all of the input data provided so far due to insufficient output space. It also assures that data provided is compressed before the parameter changes, even if at the beginning of the stream.
* Compile the gzopen_w() function when __CYGWIN__ defined.Mark Adler2015-08-011-1/+1
|
* Clarify deflateReset() documentation.Mark Adler2015-07-281-4/+4
| | | | | | It previously could have been misinterpreted to mean that parameter changes after deflateInit2() would be reversed, which is not the case.
* Avoid use of DEBUG macro -- change to ZLIB_DEBUG.Mark Adler2015-07-281-1/+1
|
* Add comment about not using windowBits of 8 for deflate().Mark Adler2015-07-281-0/+8
|
* Improve speed of gzprintf() in transparent mode.Mark Adler2015-07-051-4/+3
|
* Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.Mark Adler2014-04-261-1/+2
|
* Change version number to 1.2.8.1.Mark Adler2013-05-021-4/+4
|
* zlib 1.2.8v1.2.8Mark Adler2013-04-281-2/+2
|
* Correct spelling error in zlib.h.Mark Adler2013-04-281-1/+1
|
* Change version number to 1.2.8.Mark Adler2013-04-281-5/+5
|
* zlib 1.2.7.3v1.2.7.3Mark Adler2013-04-131-2/+2
|