summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:30 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:30 -0700
commit086e982175da84b3db958191031380794315f95f (patch)
tree12f18893b4561c1b0593931dfbb6cb300d6c00c7 /deflate.h
parent85e7d7d9ba71d95a9e6a64b98bae4fac09f06f1c (diff)
downloadzlib-1.2.0.4.tar.gz
zlib-1.2.0.4.tar.bz2
zlib-1.2.0.4.zip
zlib 1.2.0.4v1.2.0.4
Diffstat (limited to '')
-rw-r--r--deflate.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/deflate.h b/deflate.h
index 0e8417d..de3e6ce 100644
--- a/deflate.h
+++ b/deflate.h
@@ -15,6 +15,14 @@
15 15
16#include "zutil.h" 16#include "zutil.h"
17 17
18/* define NO_GZIP when compiling if you want to disable gzip header and
19 trailer creation by deflate(). NO_GZIP would be used to avoid linking in
20 the crc code when it is not needed. For shared libraries, gzip encoding
21 should be left enabled. */
22#ifndef NO_GZIP
23# define GZIP
24#endif
25
18/* =========================================================================== 26/* ===========================================================================
19 * Internal compression state. 27 * Internal compression state.
20 */ 28 */
@@ -86,7 +94,7 @@ typedef struct internal_state {
86 ulg pending_buf_size; /* size of pending_buf */ 94 ulg pending_buf_size; /* size of pending_buf */
87 Bytef *pending_out; /* next pending byte to output to the stream */ 95 Bytef *pending_out; /* next pending byte to output to the stream */
88 int pending; /* nb of bytes in the pending buffer */ 96 int pending; /* nb of bytes in the pending buffer */
89 int noheader; /* suppress zlib header and adler32 */ 97 int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
90 Byte data_type; /* UNKNOWN, BINARY or ASCII */ 98 Byte data_type; /* UNKNOWN, BINARY or ASCII */
91 Byte method; /* STORED (for zip only) or DEFLATED */ 99 Byte method; /* STORED (for zip only) or DEFLATED */
92 int last_flush; /* value of flush param for previous deflate call */ 100 int last_flush; /* value of flush param for previous deflate call */