MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / deflateStateCheck

Function deflateStateCheck

extlibs/minizip/src/deflate.c:369–390  ·  view source on GitHub ↗

========================================================================= * Check for a valid deflate stream state. Return 0 if ok, 1 if not. */

(strm)

Source from the content-addressed store, hash-verified

367 * Check for a valid deflate stream state. Return 0 if ok, 1 if not.
368 */
369local int deflateStateCheck(strm)
370
371z_streamp strm;
372{
373 deflate_state* s;
374 if (strm == Z_NULL ||
375 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
376 return 1;
377 s = strm->state;
378 if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE &&
379#ifdef GZIP
380 s->status != GZIP_STATE &&
381#endif
382 s->status != EXTRA_STATE &&
383 s->status != NAME_STATE &&
384 s->status != COMMENT_STATE &&
385 s->status != HCRC_STATE &&
386 s->status != BUSY_STATE &&
387 s->status != FINISH_STATE))
388 return 1;
389 return 0;
390}
391
392/* ========================================================================= */
393int ZEXPORT deflateSetDictionary(strm, dictionary, dictLength)

Callers 12

deflateSetDictionaryFunction · 0.85
deflateGetDictionaryFunction · 0.85
deflate.cFile · 0.85
deflateSetHeaderFunction · 0.85
deflatePendingFunction · 0.85
deflatePrimeFunction · 0.85
deflateParamsFunction · 0.85
deflateTuneFunction · 0.85
deflateBoundFunction · 0.85
deflateFunction · 0.85
deflateEndFunction · 0.85
deflateCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected