You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I’ve been working on moving my code from version 1.1 of mini zip to version 2.8.9, but I’ve been encountering some issues. Currently my code reads the length of a file from the file header. The problem is that the local header file in the zip file no longer has the uncompressed size of the file, but instead the file descriptor contains it. I read in appnotes.txt that if the 3rd bit of the general purpose flags is set then the CRC-32 and uncompressed size fields are set to be zero in the local header and the correct values are put in the data descriptor and central directory. I checked the hexdump of the newly generated zip file, and the 3rd bit of the general purpose flag is indeed set. Thus I was wondering how I can disable this so that the uncompressed file size and crc-32 data are contained in the local header file instead of the data descriptors.
Activity
Allow the ability to disable use of data descriptor. Using data descr…
nmoinvaz commentedon Jan 4, 2020
I have made a commit that will allow you to set call
mz_zip_set_data_descriptor(handle, 0)in the dev branch.Allow the ability to disable use of data descriptor. Using data descr…