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

Function mz_zip_array_resize

SampleFramework11/v1.02/TinyEXR.cpp:4333–4342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 1

Tested by

no test coverage detected