MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / mz_zip_array_resize

Function mz_zip_array_resize

Source/ThirdParty/tinyexr/miniz.cpp:3405–3414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3403}
3404
3405static MZ_FORCEINLINE mz_bool mz_zip_array_resize(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing)
3406{
3407 if (new_size > pArray->m_capacity)
3408 {
3409 if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing))
3410 return MZ_FALSE;
3411 }
3412 pArray->m_size = new_size;
3413 return MZ_TRUE;
3414}
3415
3416static MZ_FORCEINLINE mz_bool mz_zip_array_ensure_room(mz_zip_archive *pZip, mz_zip_array *pArray, size_t n)
3417{

Calls 1

Tested by

no test coverage detected