summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-12-29 13:19:27 -0800
committerMark Adler <madler@alumni.caltech.edu>2012-01-07 14:08:02 -0800
commit0b828b4aa6c962ab46eae624578d77b35395b2c1 (patch)
tree6c61daa3f02cd938d5f2434a3c3be2998866a43d /deflate.h
parent8f5eceefe8b384d7c18813519cb337efef21a0f3 (diff)
downloadzlib-0b828b4aa6c962ab46eae624578d77b35395b2c1.tar.gz
Write out all of the available bits when using Z_BLOCK.
Previously, the bit buffer would hold 1 to 16 bits after "all" of the output is provided after a Z_BLOCK deflate() call. Now at most seven bits remain in the output buffer after Z_BLOCK. flush_pending() now flushes the bit buffer before copying out the byte buffer, in order for it to really flush as much as possible.
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/deflate.h b/deflate.h
index 3590e4d..d605fc6 100644
--- a/deflate.h
+++ b/deflate.h
@@ -296,6 +296,7 @@ void ZLIB_INTERNAL _tr_init OF((deflate_state *s));
int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf,
ulg stored_len, int last));
+void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s));
void ZLIB_INTERNAL _tr_align OF((deflate_state *s));
void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
ulg stored_len, int last));