diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2025-05-11 14:49:04 -0700 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2025-12-06 17:39:14 -0800 |
| commit | 1ab1026a20282383d9cd2282f81461655bea4028 (patch) | |
| tree | 511ef0996f9beb4c83ba15e72d7cc62d6252bb56 /zlib.h | |
| parent | 473f78532aed8f5a8d55cd6e7b305160db9cf742 (diff) | |
| download | zlib-1ab1026a20282383d9cd2282f81461655bea4028.tar.gz zlib-1ab1026a20282383d9cd2282f81461655bea4028.tar.bz2 zlib-1ab1026a20282383d9cd2282f81461655bea4028.zip | |
Add a "G" option to force gzip, disabling transparency in gzread().
If the input is not a gzip stream with this option, an error will
be returned.
Diffstat (limited to 'zlib.h')
| -rw-r--r-- | zlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1343,7 +1343,11 @@ ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode); | |||
| 1343 | 'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression | 1343 | 'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression |
| 1344 | as in "wb9F". (See the description of deflateInit2 for more information | 1344 | as in "wb9F". (See the description of deflateInit2 for more information |
| 1345 | about the strategy parameter.) 'T' will request transparent writing or | 1345 | about the strategy parameter.) 'T' will request transparent writing or |
| 1346 | appending with no compression and not using the gzip format. | 1346 | appending with no compression and not using the gzip format. 'T' cannot be |
| 1347 | used to force transparent reading. Transparent reading is automatically | ||
| 1348 | performed if there is no gzip header at the start. Transparent reading can | ||
| 1349 | be disabled with the 'G' option, which will instead return an error if there | ||
| 1350 | is no gzip header. | ||
| 1347 | 1351 | ||
| 1348 | "a" can be used instead of "w" to request that the gzip stream that will | 1352 | "a" can be used instead of "w" to request that the gzip stream that will |
| 1349 | be written be appended to the file. "+" will result in an error, since | 1353 | be written be appended to the file. "+" will result in an error, since |
