Difference between revisions of "Zlib.decompress"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Return the decompressed stream after processing the given buffer.</translate>
 
<translate>Return the decompressed stream after processing the given buffer.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = zlib.decompress(buffer,windowBits)
 
(string) = zlib.decompress(buffer,windowBits)
 
</source>
 
</source>

Revision as of 14:32, 13 July 2023


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