@@ -230,7 +230,7 @@ ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
230230 Initializes the internal stream state for compression. The fields
231231 zalloc, zfree and opaque must be initialized before by the caller. If
232232 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.
234234
235235 The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
236236 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);
382382 read or consumed. The allocation of a sliding window will be deferred to
383383 the first call of inflate (if the decompression does not complete on the
384384 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.
386387
387388 inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough
388389 memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
@@ -695,7 +696,7 @@ ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
695696 This function is equivalent to deflateEnd followed by deflateInit, but
696697 does not free and reallocate the internal compression state. The stream
697698 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.
699700
700701 deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
701702 stream state was inconsistent (such as zalloc or state being Z_NULL).
@@ -820,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
820821 gzip file" and give up.
821822
822823 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().
825827
826828 deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
827829 stream state was inconsistent.
@@ -960,6 +962,7 @@ ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
960962 This function is equivalent to inflateEnd followed by inflateInit,
961963 but does not free and reallocate the internal decompression state. The
962964 stream will keep attributes that may have been set by inflateInit2.
965+ total_in, total_out, adler, and msg are initialized.
963966
964967 inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
965968 stream state was inconsistent (such as zalloc or state being Z_NULL).
0 commit comments