PackerCallback()

Syntax

PackerCallback(@Procedure())
Description
Add a callback when compressing data. As the compression is actually slow, it's possible to call a procedure at regular time to follow the packing progress. The time between two call isn't user definable, it will be calculated automatically. This is for advanced users only.

The callback must have the following form:

Procedure CompressCallback(SourcePosition, DestinationPosition)

EndProcedure

SourcePosition: Actual position, in byte, in the source buffer (uncompressed)
DestinationPosition: Actual position, in byte, in the destination buffer (compressed)

To continue the compression, the procedure must return 1. To cancel it, just returns 0.

Supported OS

Windows, Linux, MacOS X

<- PackMemory() - Packer Index - UnpackMemory() ->