Difference between revisions of "love.math.decompress"
m (This is not a CompressedData constructor.) |
m (0.11.0 -> 11.0) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.10.0]]|100|type=function}} | {{newin|[[0.10.0]]|100|type=function}} | ||
+ | {{deprecatedin|[[11.0]]|110|type=function|text=This function is deprecated and is replaced by [[love.data.decompress]]}} | ||
Decompresses a [[CompressedData]] or previously compressed string or [[Data]] object. | Decompresses a [[CompressedData]] or previously compressed string or [[Data]] object. | ||
== Function == | == Function == | ||
Line 13: | Line 14: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | rawstring = love.math.decompress( compressedString, format ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|string|compressedstring|A string containing data previously compressed with [[love.math.compress]].}} | {{param|string|compressedstring|A string containing data previously compressed with [[love.math.compress]].}} | ||
− | {{param|CompressedDataFormat|format | + | {{param|CompressedDataFormat|format|The format that was used to compress the given string.}} |
=== Returns === | === Returns === | ||
{{param|string|rawstring|A string containing the raw decompressed data.}} | {{param|string|rawstring|A string containing the raw decompressed data.}} | ||
Line 23: | Line 24: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | rawstring = love.math.decompress( data, format ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|Data|data|A Data object containing data previously compressed with [[love.math.compress]].}} | {{param|Data|data|A Data object containing data previously compressed with [[love.math.compress]].}} | ||
− | {{param|CompressedDataFormat|format | + | {{param|CompressedDataFormat|format|The format that was used to compress the given data.}} |
=== Returns === | === Returns === | ||
{{param|string|rawstring|A string containing the raw decompressed data.}} | {{param|string|rawstring|A string containing the raw decompressed data.}} |
Latest revision as of 18:15, 7 May 2019
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Deprecated in LÖVE 11.0 |
This function is deprecated and is replaced by love.data.decompress. |
Decompresses a CompressedData or previously compressed string or Data object.
Contents
Function
Synopsis
rawstring = love.math.decompress( compressedData )
Arguments
CompressedData compressedData
- The compressed data to decompress.
Returns
string rawstring
- A string containing the raw decompressed data.
Function
Synopsis
rawstring = love.math.decompress( compressedString, format )
Arguments
string compressedstring
- A string containing data previously compressed with love.math.compress.
CompressedDataFormat format
- The format that was used to compress the given string.
Returns
string rawstring
- A string containing the raw decompressed data.
Function
Synopsis
rawstring = love.math.decompress( data, format )
Arguments
Data data
- A Data object containing data previously compressed with love.math.compress.
CompressedDataFormat format
- The format that was used to compress the given data.
Returns
string rawstring
- A string containing the raw decompressed data.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info