diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 09:54:40 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 14:03:07 -0800 |
commit | 263b1a05b04e442896d7941f87d022a2f35a9220 (patch) | |
tree | 465a40cf714deb72b89504c1f3f9665db3feafd6 /zlib.h | |
parent | 19761b8506f15d6eeeb6ccfab33a11abce0f40e7 (diff) | |
download | zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.gz zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.bz2 zlib-263b1a05b04e442896d7941f87d022a2f35a9220.zip |
Allow deflatePrime() to insert bits in the middle of a stream.
This allows the insertion of multiple empty static blocks for the
purpose of efficiently bringing a stream to a byte boundary.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -734,8 +734,9 @@ ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, | |||
734 | than or equal to 16, and that many of the least significant bits of value | 734 | than or equal to 16, and that many of the least significant bits of value |
735 | will be inserted in the output. | 735 | will be inserted in the output. |
736 | 736 | ||
737 | deflatePrime returns Z_OK if success, or Z_STREAM_ERROR if the source | 737 | deflatePrime returns Z_OK if success, Z_BUF_ERROR if there was not enough |
738 | stream state was inconsistent. | 738 | room in the internal buffer to insert the bits, or Z_STREAM_ERROR if the |
739 | source stream state was inconsistent. | ||
739 | */ | 740 | */ |
740 | 741 | ||
741 | ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, | 742 | ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, |