Page 27 of 40
Posted: Tue Jan 08, 2008 3:09 pm
by Frontier
Thanks DoubleDutch, I haven't seen this

Posted: Wed Jan 09, 2008 1:07 pm
by Micko
Posted: Tue Jan 22, 2008 3:40 pm
by Sveinung
@gnozal
Will your lib support the inflate() and deflate() commands (zLib 1.23) ?
regards
Sveinung
Posted: Tue Jan 22, 2008 4:27 pm
by gnozal
Sveinung wrote:Will your lib support the inflate() and deflate() commands (zLib 1.23) ?
No, sorry.
I chose to only expose ready to use ZIP compatible functions.
But if you need 'raw' compression you could try PureZIP_PackMemory() / PureZIP_UnpackMemory() wich implement the ZLIB compress() and uncompress() functions. Or PB's JCALG1 compression routines. Or BriefLZ.
Here you will find some deflate / gz examples :
http://www.purebasic.fr/german/viewtopic.php?t=10088
Or here (same code examples but with static library instead of userlibrary) :
http://freenet-homepage.de/gnozal/PBLIB ... c_GZip.zip
Posted: Tue Jan 22, 2008 11:57 pm
by Sveinung
Will you lib support file sizes above 4 Gb?
Regards
Sveinung
Posted: Wed Jan 23, 2008 8:49 am
by gnozal
Sveinung wrote:Will you lib support file sizes above 4 Gb?
No. It's a ZLIB limit. The library uses longs.
Anyway, for serious archiving, I would use something like 7ZIP or SQX.
Posted: Wed Jan 23, 2008 10:43 am
by Sveinung
Thank you and 7Zip it will be
Sveinung
Posted: Sat May 10, 2008 6:04 am
by DoubleDutch
On PB4.20b5 the V4.20 library get a polink error if this is included:
Code: Select all
Debug PureZIP_AddFiles(myzip$,"data\*.*",#PureZIP_StorePathAbsolute,#PureZIP_RecursiveZeroDirs)
It says the polink error is to do with PB_Delay?
Posted: Sat May 10, 2008 10:26 am
by graves
Confirmed,
Up to 126 programs correctly compiled with 4.20b5.
But the only one using PureZip4.20 (v1.93) gives an error:
Code: Select all
Error: Linker
POLINK: error: Unresolved external symbol 'PB_Delay'.
POLINK: fatal error: 1 unresolved external(s).
I don't use the "Delay" OR "Debug" commands on my code.
I'm using
Code: Select all
PureZIP_AddFiles(zipfile$, abspath$\*.*, #PureZIP_StorePathRelative, #PureZIP_Recursive)
Posted: Sun May 11, 2008 12:26 pm
by gnozal
When I have some time, I will update my libs for beta 5 (they will be updated for PB4.20 final, but I may not have the time to update for every new beta).
Posted: Mon May 12, 2008 6:09 am
by DoubleDutch
No problem.
Posted: Mon May 12, 2008 9:11 am
by graves
We Will Wait.
Posted: Thu May 22, 2008 1:14 pm
by gnozal
Update
(PB 4.2x version only)
Changes :
- recompiled with PB 4.20 beta 6
Posted: Sun Jun 01, 2008 2:33 pm
by kinglestat
is it normal that when I compress with PureZIP_PackMemory, and after unpack with PureZIP_UnpackMemory, the original uncompressed size is different?
Posted: Mon Jun 02, 2008 12:35 pm
by gnozal
kinglestat wrote:is it normal that when I compress with PureZIP_PackMemory, and after unpack with PureZIP_UnpackMemory, the original uncompressed size is different?
Seems to be the same length here [tested with PB4.20] :
Code: Select all
PackTest.s = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
SourceLength = Len(PackTest)
Debug SourceLength
*SourceMemoryID = AllocateMemory(SourceLength)
PokeS(*SourceMemoryID, PackTest, SourceLength)
DestinationLength = SourceLength + (SourceLength * 0.01) + 12
*DestinationMemoryID = AllocateMemory(DestinationLength)
Debug PureZIP_PackMemory(*SourceMemoryID, SourceLength, *DestinationMemoryID, @DestinationLength)
Debug DestinationLength
Debug PureZIP_UnpackMemory(*DestinationMemoryID, DestinationLength, *SourceMemoryID, @SourceLength)
Debug SourceLength
UnpackTest.s = Space(SourceLength)
UnpackTest = PeekS(*SourceMemoryID, @SourceLength)
Could you provide some code example ?