(strm, windowBits)
| 20701 | } |
| 20702 | |
| 20703 | function inflateInit2(strm, windowBits) { |
| 20704 | var ret; |
| 20705 | var state; |
| 20706 | |
| 20707 | if (!strm) { return Z_STREAM_ERROR; } |
| 20708 | //strm.msg = Z_NULL; /* in case we return an error */ |
| 20709 | |
| 20710 | state = new InflateState(); |
| 20711 | |
| 20712 | //if (state === Z_NULL) return Z_MEM_ERROR; |
| 20713 | //Tracev((stderr, "inflate: allocated\n")); |
| 20714 | strm.state = state; |
| 20715 | state.window = null/*Z_NULL*/; |
| 20716 | ret = inflateReset2(strm, windowBits); |
| 20717 | if (ret !== Z_OK) { |
| 20718 | strm.state = null/*Z_NULL*/; |
| 20719 | } |
| 20720 | return ret; |
| 20721 | } |
| 20722 | |
| 20723 | function inflateInit(strm) { |
| 20724 | return inflateInit2(strm, DEF_WBITS); |
no test coverage detected