Zlib.decompress

From GiderosMobile
Revision as of 14:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


Available since: Gideros 2015.04.18
Class: zlib

Description

Return the decompressed stream after processing the given buffer. <syntaxhighlight lang="lua"> (string) = zlib.decompress(buffer,windowBits) </source>

Parameters

buffer: (string) buffer to deflate
windowBits: (number) from 8 to 15, larger values of this parameter result in better compression at the expense of memory usage optional

Return values

Returns (string) decompressed buffer