MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / mz_deflateReset

Function mz_deflateReset

SampleFramework11/v1.02/TinyEXR.cpp:1528–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1526}
1527
1528int mz_deflateReset(mz_streamp pStream) {
1529 if ((!pStream) || (!pStream->state) || (!pStream->zalloc) ||
1530 (!pStream->zfree))
1531 return MZ_STREAM_ERROR;
1532 pStream->total_in = pStream->total_out = 0;
1533 tdefl_init((tdefl_compressor *)pStream->state, NULL, NULL,
1534 ((tdefl_compressor *)pStream->state)->m_flags);
1535 return MZ_OK;
1536}
1537
1538int mz_deflate(mz_streamp pStream, int flush) {
1539 size_t in_bytes, out_bytes;

Callers

nothing calls this directly

Calls 1

tdefl_initFunction · 0.85

Tested by

no test coverage detected