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

Function mz_deflateReset

SampleFramework12/v1.00/TinyEXR.cpp:1529–1537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tdefl_initFunction · 0.85

Tested by

no test coverage detected