Difference between revisions of "Zlib.decompress"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2015.04.18<br/> === Description === Return the decompressed stream after processing the given buffer. <source lang="lua"> (string), =...") |
|||
(8 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) | + | (string) = zlib.decompress(buffer,windowBits) |
− | </ | + | </syntaxhighlight> |
− | '''buffer | + | |
− | '''windowBits | + | === Parameters === |
+ | '''buffer''': (string) buffer to deflate<br/> | ||
+ | '''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 === | ||
'''Returns''' (string) decompressed buffer<br/> | '''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