=========================================================================== * Flush the bit buffer and align the output on a byte boundary */
| 1118 | * Flush the bit buffer and align the output on a byte boundary |
| 1119 | */ |
| 1120 | local void bi_windup(deflate_state *s) |
| 1121 | { |
| 1122 | if (s->bi_valid > 8) { |
| 1123 | put_short(s, s->bi_buf); |
| 1124 | } else if (s->bi_valid > 0) { |
| 1125 | put_byte(s, (Byte)s->bi_buf); |
| 1126 | } |
| 1127 | s->bi_buf = 0; |
| 1128 | s->bi_valid = 0; |
| 1129 | #ifdef DEBUG |
| 1130 | s->bits_sent = (s->bits_sent+7) & ~7; |
| 1131 | #endif |
| 1132 | } |
| 1133 | |
| 1134 | /* =========================================================================== |
| 1135 | * Copy a stored block, storing first the length and its |
no outgoing calls
no test coverage detected