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

Function mz_zip_array_push_back

SampleFramework12/v1.00/TinyEXR.cpp:4350–4359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4348}
4349
4350static MZ_FORCEINLINE mz_bool
4351mz_zip_array_push_back(mz_zip_archive *pZip, mz_zip_array *pArray,
4352 const void *pElements, size_t n) {
4353 size_t orig_size = pArray->m_size;
4354 if (!mz_zip_array_resize(pZip, pArray, orig_size + n, MZ_TRUE))
4355 return MZ_FALSE;
4356 memcpy((mz_uint8 *)pArray->m_p + orig_size * pArray->m_element_size,
4357 pElements, n * pArray->m_element_size);
4358 return MZ_TRUE;
4359}
4360
4361#ifndef MINIZ_NO_TIME
4362static time_t mz_zip_dos_to_time_t(int dos_time, int dos_date) {

Calls 1

mz_zip_array_resizeFunction · 0.85

Tested by

no test coverage detected