diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -839,6 +839,21 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | |||
839 | inflate(). | 839 | inflate(). |
840 | */ | 840 | */ |
841 | 841 | ||
842 | ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm, | ||
843 | Bytef *dictionary, | ||
844 | uInt *dictLength)); | ||
845 | /* | ||
846 | Returns the sliding dictionary being maintained by inflate. dictLength is | ||
847 | set to the number of bytes in the dictionary, and that many bytes are copied | ||
848 | to dictionary. dictionary must have enough space, where 32768 bytes is | ||
849 | always enough. If inflateGetDictionary() is called with dictionary equal to | ||
850 | Z_NULL, then only the dictionary length is returned, and nothing is copied. | ||
851 | Similary, if dictLength is Z_NULL, then it is not set. | ||
852 | |||
853 | inflateSetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the | ||
854 | stream state is inconsistent. | ||
855 | */ | ||
856 | |||
842 | ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm)); | 857 | ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm)); |
843 | /* | 858 | /* |
844 | Skips invalid compressed data until a possible full flush point (see above | 859 | Skips invalid compressed data until a possible full flush point (see above |