Difference between revisions of "love.data.decompress"
(Need to read LOVE source code to get the argument order. Please edit if it's incorrect.) |
m (¯\_(ツ)_/¯) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function|text=Deprecates [[love.math.decompress]]}} |
Decompresses a [[CompressedData]] or previously compressed string or [[Data]] object. | Decompresses a [[CompressedData]] or previously compressed string or [[Data]] object. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | decompressedData = love.data.decompress( container, compressedData ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
+ | {{param|ContainerType|container|What type to return the decompressed data as.}} | ||
{{param|CompressedData|compressedData|The compressed data to decompress.}} | {{param|CompressedData|compressedData|The compressed data to decompress.}} | ||
=== Returns === | === Returns === | ||
− | {{param| | + | {{param|value|decompressedData|[[Data]]/[[string]] containing the raw decompressed data.}} |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | decompressedData = love.data.decompress( container, format, compressedString ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
+ | {{param|ContainerType|container|What type to return the decompressed data as.}} | ||
{{param|CompressedDataFormat|format|The format that was used to compress the given string.}} | {{param|CompressedDataFormat|format|The format that was used to compress the given string.}} | ||
− | {{param|string| | + | {{param|string|compressedString|A string containing data previously compressed with [[love.data.compress]].}} |
=== Returns === | === Returns === | ||
− | {{param| | + | {{param|value|decompressedData|[[Data]]/[[string]] containing the raw decompressed data.}} |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | decompressedData = love.data.decompress( container, format, data ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
+ | {{param|ContainerType|container|What type to return the decompressed data as.}} | ||
{{param|CompressedDataFormat|format|The format that was used to compress the given data.}} | {{param|CompressedDataFormat|format|The format that was used to compress the given data.}} | ||
{{param|Data|data|A Data object containing data previously compressed with [[love.data.compress]].}} | {{param|Data|data|A Data object containing data previously compressed with [[love.data.compress]].}} | ||
=== Returns === | === Returns === | ||
− | {{param| | + | {{param|value|decompressedData|[[Data]]/[[string]] containing the raw decompressed data.}} |
== See Also == | == See Also == | ||
* [[parent::love.data]] | * [[parent::love.data]] |
Latest revision as of 14:15, 2 April 2018
Available since LÖVE 11.0 |
Deprecates love.math.decompress. |
Decompresses a CompressedData or previously compressed string or Data object.
Contents
Function
Synopsis
decompressedData = love.data.decompress( container, compressedData )
Arguments
ContainerType container
- What type to return the decompressed data as.
CompressedData compressedData
- The compressed data to decompress.
Returns
Function
Synopsis
decompressedData = love.data.decompress( container, format, compressedString )
Arguments
ContainerType container
- What type to return the decompressed data as.
CompressedDataFormat format
- The format that was used to compress the given string.
string compressedString
- A string containing data previously compressed with love.data.compress.
Returns
Function
Synopsis
decompressedData = love.data.decompress( container, format, data )
Arguments
ContainerType container
- What type to return the decompressed data as.
CompressedDataFormat format
- The format that was used to compress the given data.
Data data
- A Data object containing data previously compressed with love.data.compress.
Returns
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