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