=========================================================================== * Initialize the tree data structures for a new zlib stream. */
(s)
| 378 | * Initialize the tree data structures for a new zlib stream. |
| 379 | */ |
| 380 | void ZLIB_INTERNAL _tr_init(s) |
| 381 | |
| 382 | deflate_state* s; |
| 383 | { |
| 384 | tr_static_init(); |
| 385 | |
| 386 | s->l_desc.dyn_tree = s->dyn_ltree; |
| 387 | s->l_desc.stat_desc = &static_l_desc; |
| 388 | |
| 389 | s->d_desc.dyn_tree = s->dyn_dtree; |
| 390 | s->d_desc.stat_desc = &static_d_desc; |
| 391 | |
| 392 | s->bl_desc.dyn_tree = s->bl_tree; |
| 393 | s->bl_desc.stat_desc = &static_bl_desc; |
| 394 | |
| 395 | s->bi_buf = 0; |
| 396 | s->bi_valid = 0; |
| 397 | #ifdef ZLIB_DEBUG |
| 398 | s->compressed_len = 0L; |
| 399 | s->bits_sent = 0L; |
| 400 | #endif |
| 401 | |
| 402 | /* Initialize the first block of the first file: */ |
| 403 | init_block(s); |
| 404 | } |
| 405 | |
| 406 | /* =========================================================================== |
| 407 | * Initialize a new block. |
no test coverage detected