Page 1 of 1

Question about packer

Posted: Fri Aug 12, 2022 2:25 pm
by Jeromyal
I am perhaps a little confused about how to go about this.

I want to includebinary a 7z file under 400 Kb
Then search that pack internally for any particular file inside it to extract out.

Cant you open memory as a pack without it being a file?

Re: Question about packer

Posted: Fri Aug 12, 2022 4:09 pm
by jacdelad
Nope, packed files have always to be read from disc. If it contains only one file you can use CompressMemory(), save it and then include it (including the info how big it will be after unpacking) and include your own unpack routine

Re: Question about packer

Posted: Fri Aug 12, 2022 4:22 pm
by Jeromyal
jacdelad wrote: Fri Aug 12, 2022 4:09 pm Nope, packed files have always to be read from disc. If it contains only one file you can use CompressMemory(), save it and then include it (including the info how big it will be after unpacking) and include your own unpack routine
I was afraid of that.
So if I understand what you have described.
I make a packaging program:
Load each file individually, Compress them in memory. Save them out as individual compressed data files. Then IncludeBinary() them into my application.

Then in my application, uncompress them in memory and then writedata(file, ?afile, ?afile_end - ?afile)

Re: Question about packer

Posted: Fri Aug 12, 2022 6:31 pm
by jacdelad
Yeah, that's what I wanted to say.

Re: Question about packer

Posted: Sun Aug 14, 2022 1:11 am
by idle
you can use EZpack to open files from memory, look at the examples in the zip to see how to use it

Topic
viewtopic.php?t=52586

download link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip

Re: Question about packer

Posted: Sun Aug 14, 2022 3:26 am
by Jeromyal
idle wrote: Sun Aug 14, 2022 1:11 am you can use EZpack to open files from memory, look at the examples in the zip to see how to use it

Topic
viewtopic.php?t=52586

download link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Wow, super thanks idle! I can't wait to check this out.

Re: Question about packer

Posted: Sun Aug 28, 2022 9:36 pm
by tester
idle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Great job :!: .
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.

Re: Question about packer

Posted: Sun Aug 28, 2022 10:37 pm
by idle
tester wrote: Sun Aug 28, 2022 9:36 pm
idle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Great job :!: .
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.
Should be fixed now thanks.