UnpackMemory()

Syntax

Result = UnpackMemory(SourceMemoryID, DestinationMemoryID)
Description
Unpack a previously packed memory area (with PackMemory()) into the DestinationMemory area. If 'Result' equals 0, the data can't be unpacked (corrupted or invalid format), otherwise the length of the unpacked data is returned as 'Result'.

UnpackMemory() expect a correctly packed input, as checks are not build in it (for performance reasons). If you unpack from a non-trusted source, you should do e.g. a MD5() check first.

Note: The decompression, unlike the compression, is very fast.

Supported OS

All

<- PackerCallback() - Packer Index