diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-05-26 10:37:17 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-05-26 23:25:35 -0700 |
commit | dca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509 (patch) | |
tree | ec9bd5d51d8bec3e1cbe9ef6850b5fcf0898aac4 /zlib.h | |
parent | eb90f6a56892d7f88df99e52300498d6780cacca (diff) | |
download | zlib-dca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509.tar.gz zlib-dca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509.tar.bz2 zlib-dca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509.zip |
Add inflateGetDictionary() function.
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 |