MCPcopy Create free account
hub / github.com/TruthHun/BookStack / inflateInit2

Function inflateInit2

static/word2md/mammoth.browser.js:20703–20721  ·  view source on GitHub ↗
(strm, windowBits)

Source from the content-addressed store, hash-verified

20701}
20702
20703function 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
20723function inflateInit(strm) {
20724 return inflateInit2(strm, DEF_WBITS);

Callers 1

inflateInitFunction · 0.70

Calls 1

inflateReset2Function · 0.70

Tested by

no test coverage detected