That is incorrect. The table of contents data for the zip is at the end of the file, which means that if you have a partial file you're out of luck. However, the table of contents of the zip includes offsets to the compressed data for every file in the zip. My code above uses this offset to "seek" to the right place for each file (using the unzSetOffset() from minizip), then decompresses the file. I have written code for other apps that unzips any arbitrary file from a zip directly into memory.
Compressed LDraw files
« Next Oldest | Next Newest »
Users browsing this thread: 4 Guest(s)