Posted: Wed Feb 18, 2009 6:08 pm
Any chance of a 64bit version of this ... ?
http://www.purebasic.com
https://www.purebasic.fr/english/
Just yesterday ts-soft hast a released a similar LIB like yours:gnozal wrote:It looks like a debugger issue !?
No, it doesn't. But I know why you assumed it works. You have tested your first example and not mine, right? It took me quite a while to figure it out but there is one more important thing:gnozal wrote:It works without it ...
Code: Select all
DataSection
pblogo:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\PureBasicLogo.bmp"
geebee:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\Geebee2.bmp"
skybox:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\skybox.zip"
EndDataSection
Code: Select all
DataSection
pblogo:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\PureBasicLogo.bmp"
skybox:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\skybox.zip"
geebee:
IncludeBinary #PB_Compiler_Home + "Examples\Sources\Data\Geebee2.bmp"
EndDataSection
+1X wrote:Any chance of a 64bit version of this ... ?
Yes.Fluid Byte wrote:... You have tested your first example and not mine, right?
Code: Select all
DataSection
ArchiveBufferStart:
IncludeBinary "c:\purebasic430\program\MemArchiveTest.arc"
ArchiveBufferEnd:
EndDataSection
;
If PureLZMA_MemArchive_Read(?ArchiveBufferStart, ?ArchiveBufferEnd - ?ArchiveBufferStart)
Status = PureLZMA_MemArchive_FindFirst()
;
While Status
;
If PureLZMA_MemArchive_GetArchiveInfo(@ArchiveInfo.LZMA_ArchiveInfo)
Debug "----------------"
Debug "CRCUnpacked = $" + RSet(Hex(ArchiveInfo\CRCUnpacked, #PB_Long), 8, "0")
Debug "CRCPacked = $" + RSet(Hex(ArchiveInfo\CRCPacked, #PB_Long), 8, "0")
Debug "CRCPacked CALC = $" + RSet(Hex(PureLZMA_MemArchive_GetCRC(), #PB_Long), 8, "0")
Debug "LengthUnpacked = " + Str(ArchiveInfo\LengthUnpacked)
Debug "LengthPacked = " + Str(ArchiveInfo\LengthPacked) + " (" + StrF(ArchiveInfo\LengthPacked / ArchiveInfo\LengthUnpacked * 100, 2) + "% of original)"
Debug "LZMAFlags = " + Str(ArchiveInfo\LZMAFlags)
Debug "FileAttributes = $" + Hex(ArchiveInfo\FileAttributes)
Debug "Filename = '" + ArchiveInfo\Filename + "'"
EndIf
;
Status = PureLZMA_MemArchive_FindNext()
;
Wend
;
PureLZMA_MemArchive_Close()
EndIf
Afaik, ZLIB does not offer any function to delete a file from an archive.Tranquil wrote:Is it possible to remove Files/ Folders from an Archive?
Code: Select all
PureZIP_AddFile(ZIPFilename.s, OriginalFilename.s, 0)
I use this ZLIB version : http://www.winimage.com/zLibDll/ ; it has some 'PKZIP high level' functions. The ZLIB version available at www.zlib.net doesn't.Kukulkan wrote:Can you please give me some information about the algorithm and parameters you use in ZLIB for compression in PureZIP? Is it possible to get the part of code for this call to ZLIB with the corresponding parameters and values?
This is what I do with PureLZMA-Packer.Tranquil wrote:As it is not possible to remove/ delete a file/directory directly from the archive it is necessary to re-compress the whole archive. This could be speed up a bit if it would be possible to extract an already compressed file and put this to archive again without the need of compressing it again.
It should be possible using the ZLIB 'raw' functions ; but I have no experience here. Maybe I will have a closer look when I have some time.Tranquil wrote:Maybe this is possible?
besko wrote:gnozal are you test this lib with files size more then 6gb?
not working for me (
ZLIB doesn't support files > 4 GBPureZIP.CHM wrote:ZLIB can handle files up to 4 Gbytes, but PB longs are signed [0 - 2 Gbytes]...
So if you expect PureZIP_FileInfo\CompressedSize > 2 Gbytes or PureZIP_FileInfo\unCompressedSize > 2 Gbytes,
use quads and convert signed to unsigned !
Example : Size.q = FileInfo\unCompressedSize & $FFFFFFFF
I don't understand what you mean.besko wrote:And how i can pack files in folder if i want pack custom files to different zip files.