Lines Matching refs:pArray

4798                                               mz_zip_array *pArray) {  in mz_zip_array_clear()  argument
4799 pZip->m_pFree(pZip->m_pAlloc_opaque, pArray->m_p); in mz_zip_array_clear()
4800 memset(pArray, 0, sizeof(mz_zip_array)); in mz_zip_array_clear()
4804 mz_zip_array *pArray, in mz_zip_array_ensure_capacity() argument
4809 MZ_ASSERT(pArray->m_element_size); in mz_zip_array_ensure_capacity()
4810 if (pArray->m_capacity >= min_new_capacity) return MZ_TRUE; in mz_zip_array_ensure_capacity()
4812 new_capacity = MZ_MAX(1, pArray->m_capacity); in mz_zip_array_ensure_capacity()
4815 if (NULL == (pNew_p = pZip->m_pRealloc(pZip->m_pAlloc_opaque, pArray->m_p, in mz_zip_array_ensure_capacity()
4816 pArray->m_element_size, new_capacity))) in mz_zip_array_ensure_capacity()
4818 pArray->m_p = pNew_p; in mz_zip_array_ensure_capacity()
4819 pArray->m_capacity = new_capacity; in mz_zip_array_ensure_capacity()
4824 mz_zip_array *pArray, in mz_zip_array_reserve() argument
4827 if (new_capacity > pArray->m_capacity) { in mz_zip_array_reserve()
4828 if (!mz_zip_array_ensure_capacity(pZip, pArray, new_capacity, growing)) in mz_zip_array_reserve()
4835 mz_zip_array *pArray, in mz_zip_array_resize() argument
4838 if (new_size > pArray->m_capacity) { in mz_zip_array_resize()
4839 if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing)) in mz_zip_array_resize()
4842 pArray->m_size = new_size; in mz_zip_array_resize()
4847 mz_zip_array *pArray, in mz_zip_array_ensure_room() argument
4849 return mz_zip_array_reserve(pZip, pArray, pArray->m_size + n, MZ_TRUE); in mz_zip_array_ensure_room()
4853 mz_zip_array *pArray, in mz_zip_array_push_back() argument
4856 size_t orig_size = pArray->m_size; in mz_zip_array_push_back()
4857 if (!mz_zip_array_resize(pZip, pArray, orig_size + n, MZ_TRUE)) in mz_zip_array_push_back()
4859 memcpy((mz_uint8 *)pArray->m_p + orig_size * pArray->m_element_size, in mz_zip_array_push_back()
4860 pElements, n * pArray->m_element_size); in mz_zip_array_push_back()