@@ -230,7 +230,7 @@ ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
230
230
Initializes the internal stream state for compression. The fields
231
231
zalloc, zfree and opaque must be initialized before by the caller. If
232
232
zalloc and zfree are set to Z_NULL, deflateInit updates them to use default
233
- allocation functions.
233
+ allocation functions. total_in, total_out, adler, and msg are initialized.
234
234
235
235
The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
236
236
1 gives best speed, 9 gives best compression, 0 gives no compression at all
@@ -382,7 +382,8 @@ ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
382
382
read or consumed. The allocation of a sliding window will be deferred to
383
383
the first call of inflate (if the decompression does not complete on the
384
384
first call). If zalloc and zfree are set to Z_NULL, inflateInit updates
385
- them to use default allocation functions.
385
+ them to use default allocation functions. total_in, total_out, adler, and
386
+ msg are initialized.
386
387
387
388
inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough
388
389
memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
@@ -695,7 +696,7 @@ ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
695
696
This function is equivalent to deflateEnd followed by deflateInit, but
696
697
does not free and reallocate the internal compression state. The stream
697
698
will leave the compression level and any other attributes that may have been
698
- set unchanged.
699
+ set unchanged. total_in, total_out, adler, and msg are initialized.
699
700
700
701
deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
701
702
stream state was inconsistent (such as zalloc or state being Z_NULL).
@@ -820,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
820
821
gzip file" and give up.
821
822
822
823
If deflateSetHeader is not used, the default gzip header has text false,
823
- the time set to zero, and os set to 255, with no extra, name, or comment
824
- fields. The gzip header is returned to the default state by deflateReset().
824
+ the time set to zero, and os set to the current operating system, with no
825
+ extra, name, or comment fields. The gzip header is returned to the default
826
+ state by deflateReset().
825
827
826
828
deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
827
829
stream state was inconsistent.
@@ -960,6 +962,7 @@ ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
960
962
This function is equivalent to inflateEnd followed by inflateInit,
961
963
but does not free and reallocate the internal decompression state. The
962
964
stream will keep attributes that may have been set by inflateInit2.
965
+ total_in, total_out, adler, and msg are initialized.
963
966
964
967
inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
965
968
stream state was inconsistent (such as zalloc or state being Z_NULL).
0 commit comments