summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-05-26 10:37:17 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-05-26 23:25:35 -0700
commitdca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509 (patch)
treeec9bd5d51d8bec3e1cbe9ef6850b5fcf0898aac4 /zlib.h
parenteb90f6a56892d7f88df99e52300498d6780cacca (diff)
downloadzlib-dca9e1d6f3ee32f26c1831a0a9b3a6a8aa775509.tar.gz
Add inflateGetDictionary() function.
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/zlib.h b/zlib.h
index 94909ef..cd47df5 100644
--- a/zlib.h
+++ b/zlib.h
@@ -839,6 +839,21 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
inflate().
*/
+ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
+ Bytef *dictionary,
+ uInt *dictLength));
+/*
+ Returns the sliding dictionary being maintained by inflate. dictLength is
+ set to the number of bytes in the dictionary, and that many bytes are copied
+ to dictionary. dictionary must have enough space, where 32768 bytes is
+ always enough. If inflateGetDictionary() is called with dictionary equal to
+ Z_NULL, then only the dictionary length is returned, and nothing is copied.
+ Similary, if dictLength is Z_NULL, then it is not set.
+
+ inflateSetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
+ stream state is inconsistent.
+*/
+
ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
/*
Skips invalid compressed data until a possible full flush point (see above