Registriert seit: 30. Nov 2005
Ort: München
5.768 Beiträge
Delphi 10.4 Sydney
|
Re: Ordentliche Komprimierungsunit
16. Aug 2009, 14:29
Vielleicht geht es so schneller?
Delphi-Quellcode:
procedure CompressStream(aStream: TStream);
var
zc: TZCompressionStream;
ms: TStream;
begin
ms := (ms as TMemoryStream).Create;
zc := TZCompressionStream.Create(ms, zcMax);
try
zc.CopyFrom(aStream, 0);
finally
zc.Free;
end;
aStream.Free
aStream:=ms;
end;
Grüße
Klaus
Klaus
|