diff options
Diffstat (limited to '')
-rw-r--r-- | zlib.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -791,6 +791,18 @@ ZEXTERN int ZEXPORT deflatePending(z_streamp strm, | |||
791 | stream state was inconsistent. | 791 | stream state was inconsistent. |
792 | */ | 792 | */ |
793 | 793 | ||
794 | ZEXTERN int ZEXPORT deflateUsed(z_streamp strm, | ||
795 | int *bits); | ||
796 | /* | ||
797 | deflateUsed() returns in *bits the most recent number of deflate bits used | ||
798 | in the last byte when flushing to a byte boundary. The result is in 1..8, or | ||
799 | 0 if there has not yet been a flush. This helps determine the location of | ||
800 | the last bit of a deflate stream. | ||
801 | |||
802 | deflateUsed returns Z_OK if success, or Z_STREAM_ERROR if the source | ||
803 | stream state was inconsistent. | ||
804 | */ | ||
805 | |||
794 | ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, | 806 | ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, |
795 | int bits, | 807 | int bits, |
796 | int value); | 808 | int value); |