You are not logged in.
When I look in the function TZipWrite.AddDeflated(const aZipName: TFileName; Buf: pointer; Size: PtrInt;...), only the start and the end are considered.
The description is not quite correct.
/// optional TOnInfoProgress callback triggered during Zip/Unzip
// - at least at process startup and finish, and every ReportDelay ms
property OnProgress: TOnInfoProgress
read fInfo.OnProgress write fInfo.OnProgress;
A message after ReportDelay is never triggered for the functions:
AddDeflated(const aZipName: TFileName; Buf: pointer; Size: PtrInt; ...)
AddStored(const aZipName: TFileName; Buf: pointer; Size: PtrInt;...)
AddFromZip()
Append()
For other functions only if LIBDEFLATE_MAXSIZE is exceeded.
With best regards
Thomas
Offline
Yes, this is because there is no progress callback available in the in-memory process of libdeflate.
Sorry, I could not express my intention clearly enough. I have a problem with the word "every" in the description. I would have expected a formulation more like the following:
/// optional TOnInfoProgress callback triggered during Zip/Unzip
// - at least at startup and finish, and for functions that support ReportDelay [ms] for all longer-running processes
With best regards
Thomas
Offline
You are right.
Please try https://github.com/synopse/mORMot2/commit/6c5e92cf
Offline