On 4 February 2012 04:02, silvioprog wrote:
How to use gzip in stream with FPC?
See tiOPF v2, and units dzlib.pas and tiCompressZLib.pas in the
Options directory.
I use it in production code, and the tiOPF code is very well unit tested too.
tiOPF is hosted on SourceForge at:
On Sat, 4 Feb 2012, silvioprog wrote:
Hello,
How to use gzip in stream with FPC?
The zstream unit contains the TGZFileStream class which can be used to read
or write GZIp files.
Michael.
--
___
Lazarus mailing list
2012/2/6 michael.vancann...@wisa.be:
[...]
The zstream unit contains the TGZFileStream class which can be used to read
or write GZIp files.
Michael.
Hello Michael. :)
Hm, I noticed, but you can work directly with stream without
necessarily having to create a file?
--
Silvio Clécio
2012/2/4 Darius Blaszyk dhkblas...@zeelandnet.nl:
There's a gzip example program in packages/paszlib/examples
Darius
The examples explain how to use compression in files, I need to
compress streams. :/
--
Silvio Clécio
Site - silvioprog.com.br
Hello,
How to use gzip in stream with FPC?
Only deflate:
(...)
var
S: string;
VDeflate: TCompressionStream;
begin
VDeflate := TCompressionStream.Create(clMax, Contents);
try
S := 'Hello';
VDeflate.Write(Pointer(S)^, Length(S));
finally
VDeflate.Free;