=========================================================================== * Flush the bit buffer, keeping at most 7 bits in it. */
| 164 | * Flush the bit buffer, keeping at most 7 bits in it. |
| 165 | */ |
| 166 | local void bi_flush(deflate_state *s) { |
| 167 | if (s->bi_valid == 16) { |
| 168 | put_short(s, s->bi_buf); |
| 169 | s->bi_buf = 0; |
| 170 | s->bi_valid = 0; |
| 171 | } else if (s->bi_valid >= 8) { |
| 172 | put_byte(s, (Byte)s->bi_buf); |
| 173 | s->bi_buf >>= 8; |
| 174 | s->bi_valid -= 8; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | /* =========================================================================== |
| 179 | * Flush the bit buffer and align the output on a byte boundary |
no outgoing calls
no test coverage detected