Difference between revisions of "Zlib.decompress"
From GiderosMobile
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2015.04.18<br/> | '''Available since:''' Gideros 2015.04.18<br/> | ||
+ | '''Class:''' [[zlib]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Returns the decompressed stream after processing the given buffer. | |
− | < | + | <syntaxhighlight lang="lua"> |
(string) = zlib.decompress(buffer,windowBits) | (string) = zlib.decompress(buffer,windowBits) | ||
− | </ | + | </syntaxhighlight> |
+ | |||
=== Parameters === | === Parameters === | ||
− | '''buffer''': (string) | + | '''buffer''': (string) buffer to deflate<br/> |
− | '''windowBits''': (number) | + | '''windowBits''': (number) from 8 to 15, larger values of this parameter result in better compression at the expense of memory usage '''optional'''<br/> |
+ | |||
=== Return values === | === Return values === | ||
− | '''Returns''' (string) | + | '''Returns''' (string) decompressed buffer<br/> |
+ | |||
+ | {{Zlib}} |
Latest revision as of 22:36, 1 December 2023
Available since: Gideros 2015.04.18
Class: zlib
Description
Returns the decompressed stream after processing the given buffer.
(string) = zlib.decompress(buffer,windowBits)
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