(s)
| 23355 | * Initialize the tree data structures for a new zlib stream. |
| 23356 | */ |
| 23357 | function _tr_init(s) |
| 23358 | { |
| 23359 | |
| 23360 | if (!static_init_done) { |
| 23361 | tr_static_init(); |
| 23362 | static_init_done = true; |
| 23363 | } |
| 23364 | |
| 23365 | s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc); |
| 23366 | s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc); |
| 23367 | s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc); |
| 23368 | |
| 23369 | s.bi_buf = 0; |
| 23370 | s.bi_valid = 0; |
| 23371 | |
| 23372 | /* Initialize the first block of the first file: */ |
| 23373 | init_block(s); |
| 23374 | } |
| 23375 | |
| 23376 | |
| 23377 | /* =========================================================================== |
nothing calls this directly
no test coverage detected