Compressed LDraw files


Re: Compressed Library was Re: Compressed LDraw files
#24
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.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Compressed LDraw files - by Roland Melkert - 2013-01-29, 20:33
Re: Compressed LDraw files - by Tim Gould - 2013-01-29, 20:44
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-29, 20:49
Re: Compressed LDraw files - by Tim Gould - 2013-01-29, 22:10
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 6:36
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 20:59
Re: Compressed LDraw files - by Allen Smith - 2013-01-30, 17:17
Re: Compressed Library was Re: Compressed LDraw files - by Travis Cobbs - 2013-01-31, 19:01
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 21:15
Re: Compressed LDraw files - by Allen Smith - 2013-01-31, 4:39
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-31, 21:59
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-29, 20:46
Re: Compressed LDraw files - by Steffen - 2013-01-29, 23:23
Re: Compressed LDraw files - by Steffen - 2013-02-03, 1:33

Forum Jump:


Users browsing this thread: 4 Guest(s)