=========================================================================== * Flush the bit buffer and align the output on a byte boundary */
(s)
| 1176 | * Flush the bit buffer and align the output on a byte boundary |
| 1177 | */ |
| 1178 | local void bi_windup(s) |
| 1179 | deflate_state *s; |
| 1180 | { |
| 1181 | if (s->bi_valid > 8) { |
| 1182 | put_short(s, s->bi_buf); |
| 1183 | } else if (s->bi_valid > 0) { |
| 1184 | put_byte(s, (Byte)s->bi_buf); |
| 1185 | } |
| 1186 | s->bi_buf = 0; |
| 1187 | s->bi_valid = 0; |
| 1188 | #ifdef DEBUG |
| 1189 | s->bits_sent = (s->bits_sent+7) & ~7; |
| 1190 | #endif |
| 1191 | } |
| 1192 | |
| 1193 | /* =========================================================================== |
| 1194 | * Copy a stored block, storing first the length and its |
no outgoing calls
no test coverage detected