(s)
| 11373 | * Initialize the tree data structures for a new zlib stream. |
| 11374 | */ |
| 11375 | function _tr_init(s) |
| 11376 | { |
| 11377 | |
| 11378 | if (!static_init_done) { |
| 11379 | tr_static_init(); |
| 11380 | static_init_done = true; |
| 11381 | } |
| 11382 | |
| 11383 | s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc); |
| 11384 | s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc); |
| 11385 | s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc); |
| 11386 | |
| 11387 | s.bi_buf = 0; |
| 11388 | s.bi_valid = 0; |
| 11389 | |
| 11390 | /* Initialize the first block of the first file: */ |
| 11391 | init_block(s); |
| 11392 | } |
| 11393 | |
| 11394 | |
| 11395 | /* =========================================================================== |
nothing calls this directly
no test coverage detected