=========================================================================== * Flush the bit buffer and align the output on a byte boundary */
(s)
| 1188 | * Flush the bit buffer and align the output on a byte boundary |
| 1189 | */ |
| 1190 | local void bi_windup(s) |
| 1191 | deflate_state *s; |
| 1192 | { |
| 1193 | if (s->bi_valid > 8) { |
| 1194 | put_short(s, s->bi_buf); |
| 1195 | } else if (s->bi_valid > 0) { |
| 1196 | put_byte(s, (Byte)s->bi_buf); |
| 1197 | } |
| 1198 | s->bi_buf = 0; |
| 1199 | s->bi_valid = 0; |
| 1200 | #ifdef ZLIB_DEBUG |
| 1201 | s->bits_sent = (s->bits_sent+7) & ~7; |
| 1202 | #endif |
| 1203 | } |
no outgoing calls
no test coverage detected