(madZip) UnCompress and visual feedback.

delphi package - madRes, madTools, madStrings, ...
Post Reply
Zarkow
Posts: 1
Joined: Thu Jul 28, 2005 3:41 pm

(madZip) UnCompress and visual feedback.

Post by Zarkow »

Was playing around with the zLib-adaptation.

used the
function Compress (src, dst: pointer; srcLen, dstLen: integer) : integer; overload;
function Uncompress (src, dst: pointer; srcLen, dstLen: integer) : integer; overload;
for large files, since they handled pointers, not thinking about the fact that every compressed section would have it's own header and upon decompressing it's impossible to know what data is compressed data and header, if trying to read 32Kb of data per read...(blockread/write)

The file-versions works fine, but what I miss is progress-indication, hence why I tried the solution above...before I drank some coke and realised why it couldn't. ;)

Any way, apart from taking the madZip-rutine apart (e.i. derive an own adaptation based on it) is there any way to get visual indication of it working?

Best regards, Z.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Actually I've wanted visual feedback for my owm purposes, too. I just didn't have the time to implement it yet. I'll put it on my to do list, can't promise a specific date, though, unfortunately.
Post Reply