=========================================================================== * Flush the bit buffer and align the output on a byte boundary */
(s)
| 1281 | * Flush the bit buffer and align the output on a byte boundary |
| 1282 | */ |
| 1283 | local void bi_windup(s) |
| 1284 | |
| 1285 | deflate_state* s; |
| 1286 | { |
| 1287 | if (s->bi_valid > 8) |
| 1288 | { |
| 1289 | put_short(s, s->bi_buf); |
| 1290 | } |
| 1291 | else if (s->bi_valid > 0) |
| 1292 | { |
| 1293 | put_byte(s, (Byte)s->bi_buf); |
| 1294 | } |
| 1295 | s->bi_buf = 0; |
| 1296 | s->bi_valid = 0; |
| 1297 | #ifdef ZLIB_DEBUG |
| 1298 | s->bits_sent = (s->bits_sent+7) & ~7; |
| 1299 | #endif |
| 1300 | } |
no outgoing calls
no test coverage detected