=========================================================================== * Send a stored block */
| 839 | * Send a stored block |
| 840 | */ |
| 841 | void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last) |
| 842 | { |
| 843 | send_bits(s, (STORED_BLOCK<<1)+last, 3); /* send block type */ |
| 844 | #ifdef DEBUG |
| 845 | s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L; |
| 846 | s->compressed_len += (stored_len + 4) << 3; |
| 847 | #endif |
| 848 | copy_block(s, buf, (unsigned)stored_len, 1); /* with header */ |
| 849 | } |
| 850 | |
| 851 | /* =========================================================================== |
| 852 | * Flush the bits in the bit buffer to pending output (leaves at most 7 bits) |
no test coverage detected