UncompressMemory()

Syntax

Result = UncompressMemory(*Buffer, Size, *Output, OutputSize [, Plugin])
Description
Uncompress the buffer content into the output buffer. The output buffer length needs to be at least as long as the buffer to uncompress.

Parameters

*Buffer The memory buffer to uncompress.
Size The size of the memory to uncompress.
*Output The memory buffer to store the uncompressed data.
OutputSize The memory buffer size to store the uncompressed data. It must be at least of the size of the uncompressed data.
Plugin (optional) The plugin to use, if more than one packer plugin has been registered. It can be one of the following value:
  #PB_PackerPlugin_BriefLZ: use the BriefLZ packer to uncompress the memory. UseBriefLZPacker() has to be called to have any effect.
  #PB_PackerPlugin_Zip    : use the Zip packer to uncompress the memory. UseZipPacker() has to be called to have any effect.
  #PB_PackerPlugin_Lzma   : use the Lzma packer to uncompress the memory. UseLzmaPacker() has to be called to have any effect.
  #PB_PackerPlugin_Jcalg1 : use the Jcalg1 packer to uncompress the memory. UseJcalg1Packer() has to be called to have any effect.

Return value

Return the uncompressed size if the buffer has been successfully uncompressed, -1 otherwise.

See Also

CompressMemory()

Supported OS

All

<- PackEntryType() - Packer Index - UncompressPackFile() ->