aboutsummaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2025-05-11 14:49:04 -0700
committerMark Adler <git@madler.net>2025-12-06 17:39:14 -0800
commit1ab1026a20282383d9cd2282f81461655bea4028 (patch)
tree511ef0996f9beb4c83ba15e72d7cc62d6252bb56 /zlib.h
parent473f78532aed8f5a8d55cd6e7b305160db9cf742 (diff)
downloadzlib-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/zlib.h b/zlib.h
index 85d79998..a2db7b2b 100644
--- a/zlib.h
+++ b/zlib.h
@@ -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