=========================================================================== * Flush the bit buffer, keeping at most 7 bits in it. */
(s)
| 1171 | * Flush the bit buffer, keeping at most 7 bits in it. |
| 1172 | */ |
| 1173 | local void bi_flush(s) |
| 1174 | deflate_state *s; |
| 1175 | { |
| 1176 | if (s->bi_valid == 16) { |
| 1177 | put_short(s, s->bi_buf); |
| 1178 | s->bi_buf = 0; |
| 1179 | s->bi_valid = 0; |
| 1180 | } else if (s->bi_valid >= 8) { |
| 1181 | put_byte(s, (Byte)s->bi_buf); |
| 1182 | s->bi_buf >>= 8; |
| 1183 | s->bi_valid -= 8; |
| 1184 | } |
| 1185 | } |
| 1186 | |
| 1187 | /* =========================================================================== |
| 1188 | * Flush the bit buffer and align the output on a byte boundary |
no outgoing calls
no test coverage detected