diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); | |||
276 | == 0), or after each call of deflate(). If deflate returns Z_OK and with | 276 | == 0), or after each call of deflate(). If deflate returns Z_OK and with |
277 | zero avail_out, it must be called again after making room in the output | 277 | zero avail_out, it must be called again after making room in the output |
278 | buffer because there might be more output pending. See deflatePending(), | 278 | buffer because there might be more output pending. See deflatePending(), |
279 | which can be used if desired to determine whether or not there is more ouput | 279 | which can be used if desired to determine whether or not there is more output |
280 | in that case. | 280 | in that case. |
281 | 281 | ||
282 | Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to | 282 | Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to |
@@ -660,7 +660,7 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm, | |||
660 | to dictionary. dictionary must have enough space, where 32768 bytes is | 660 | to dictionary. dictionary must have enough space, where 32768 bytes is |
661 | always enough. If deflateGetDictionary() is called with dictionary equal to | 661 | always enough. If deflateGetDictionary() is called with dictionary equal to |
662 | Z_NULL, then only the dictionary length is returned, and nothing is copied. | 662 | Z_NULL, then only the dictionary length is returned, and nothing is copied. |
663 | Similary, if dictLength is Z_NULL, then it is not set. | 663 | Similarly, if dictLength is Z_NULL, then it is not set. |
664 | 664 | ||
665 | deflateGetDictionary() may return a length less than the window size, even | 665 | deflateGetDictionary() may return a length less than the window size, even |
666 | when more than the window size in input has been provided. It may return up | 666 | when more than the window size in input has been provided. It may return up |
@@ -915,7 +915,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm, | |||
915 | to dictionary. dictionary must have enough space, where 32768 bytes is | 915 | to dictionary. dictionary must have enough space, where 32768 bytes is |
916 | always enough. If inflateGetDictionary() is called with dictionary equal to | 916 | always enough. If inflateGetDictionary() is called with dictionary equal to |
917 | Z_NULL, then only the dictionary length is returned, and nothing is copied. | 917 | Z_NULL, then only the dictionary length is returned, and nothing is copied. |
918 | Similary, if dictLength is Z_NULL, then it is not set. | 918 | Similarly, if dictLength is Z_NULL, then it is not set. |
919 | 919 | ||
920 | inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the | 920 | inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the |
921 | stream state is inconsistent. | 921 | stream state is inconsistent. |
@@ -1437,12 +1437,12 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems, | |||
1437 | 1437 | ||
1438 | In the event that the end of file is reached and only a partial item is | 1438 | In the event that the end of file is reached and only a partial item is |
1439 | available at the end, i.e. the remaining uncompressed data length is not a | 1439 | available at the end, i.e. the remaining uncompressed data length is not a |
1440 | multiple of size, then the final partial item is nevetheless read into buf | 1440 | multiple of size, then the final partial item is nevertheless read into buf |
1441 | and the end-of-file flag is set. The length of the partial item read is not | 1441 | and the end-of-file flag is set. The length of the partial item read is not |
1442 | provided, but could be inferred from the result of gztell(). This behavior | 1442 | provided, but could be inferred from the result of gztell(). This behavior |
1443 | is the same as the behavior of fread() implementations in common libraries, | 1443 | is the same as the behavior of fread() implementations in common libraries, |
1444 | but it prevents the direct use of gzfread() to read a concurrently written | 1444 | but it prevents the direct use of gzfread() to read a concurrently written |
1445 | file, reseting and retrying on end-of-file, when size is not 1. | 1445 | file, resetting and retrying on end-of-file, when size is not 1. |
1446 | */ | 1446 | */ |
1447 | 1447 | ||
1448 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len)); | 1448 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len)); |