PackMemory()

Syntax

Result = PackMemory(SourceMemoryID, DestinationMemoryID, SourceLength)

Description

Pack the content of the SourceMemory area into the DestinationMemory area. The destinatation area must be at least the length of the Source area + 8. If Result is 0, the compression has failed, else it's the compressed size of the Destination area. The compressed data can be unpacked with UnpackMemory(). For advanced users, a callback can be added to follow the packing progress with PackerCallback(). Memory area can be easely allocated with the AllocateMemory() command.

Note :

The compression algorythm is currently very slow but it give very good result (superior to .zip format) and best of all, is lightning fast to decompress (much faster than .zip).

Supported OS

Windows

Packer - Index