From 81df2df0f68aea5c2e5dd5d1c58da3f4a4f8a57f Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 8 Jul 2017 13:58:18 +0200 Subject: [PATCH] Document mz_zip_writer_init --- miniz_zip.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniz_zip.h b/miniz_zip.h index 52aeaef..81ed483 100644 --- a/miniz_zip.h +++ b/miniz_zip.h @@ -348,8 +348,11 @@ mz_bool mz_zip_end(mz_zip_archive *pZip); #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS /* Inits a ZIP archive writer. */ +/*Set pZip->m_pWrite (and pZip->m_pIO_opaque) before calling mz_zip_writer_init or mz_zip_writer_init_v2*/ +/*The output is streamable, i.e. file_ofs in mz_file_write_func always increases only by n*/ mz_bool mz_zip_writer_init(mz_zip_archive *pZip, mz_uint64 existing_size); mz_bool mz_zip_writer_init_v2(mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags); + mz_bool mz_zip_writer_init_heap(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size); mz_bool mz_zip_writer_init_heap_v2(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size, mz_uint flags);