On Fri, 11 Oct 2013, Dennis Poon wrote:

Please help. I am using Delphi 5's zlib procedure   CompressBuf(src,SrcLen, 
Dest, DestLen);
to compress data to be decompressed by FPC's paszlib unit, but I don't know 
which one of the many procedure is the right right to use?
I tried uncompress(Dest, DestLen, Src, SrcLen) but it is obviously wrong.
It is urgent. Thanks a lot in advance.

There is no direct replacement for this routine.

function compress (dest : Pbyte;
                   var destLen : cardinal;
                   const source : array of Byte;
                   sourceLen : cardinal) : integer;

from the zcompres unit probably comes closest.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to