MCPcopy Create free account
hub / github.com/TheRealMJP/DXRPathTracer / mz_zip_array_resize

Function mz_zip_array_resize

SampleFramework12/v1.02/TinyEXR.cpp:4334–4343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4332}
4333
4334static MZ_FORCEINLINE mz_bool
4335mz_zip_array_resize(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size,
4336 mz_uint growing) {
4337 if (new_size > pArray->m_capacity) {
4338 if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing))
4339 return MZ_FALSE;
4340 }
4341 pArray->m_size = new_size;
4342 return MZ_TRUE;
4343}
4344
4345static MZ_FORCEINLINE mz_bool
4346mz_zip_array_ensure_room(mz_zip_archive *pZip, mz_zip_array *pArray, size_t n) {

Calls 1

Tested by

no test coverage detected