Paszlib

This is an old revision of Paszlib, edited by Slawek at . The current revision is 58009.

paszlib jest konwersją na Pascal (a zatem bez zależności) standardowej biblioteki zlib, zaimplementowanej przez Jacques Nomssi Nzali (jego strona domowa wygasła, zobacz kontynuację tego projektu tutaj). Jest ona używana w bibliotece FCL do realizacji klasy TCompressionstream. Głównym modułem tego pakietu jest paszlib. Istnieją także inne, moduły pomocnicze, ale moduł paszlib musi być zawarty w typowym programie. (Zobacz interfejs)

TZipper

Using the latest TZipper

In FPC 2.3.1 there are many fixes which make TZipper much better. To be able to use them until the next FPC is released with those fixes one should follow the following steps:

1 - Download zipper.pp, and only this file, from: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/paszlib/src/

2 - Rename the file to a unique name, to avoid conflict with the fpc unit, like myzipper.pp and also change the name inside the source file.

3 - Add the file to your project and use the TZipper from there.

Usage example

 FZipper.FileName:=ParamStr(1);
 For I:=2 to ParamCount do
   begin
   F:=TFileStream.Create(ParamStr(i),fmOpenRead);
   FZipper.Entries.AddFileEntry(F,ParamStr(i));
   end;
 FZipper.ZipAllFiles;
 For I:=0 to FZipper.Entries.Count-1 do
   FZipper.Entries[I].Stream.Free;

Go to back Packages List