love.math.compress
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Compresses a string or data using a specific compression algorithm.
This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! |
Contents
Function
Synopsis
compressedData = love.math.compress( rawstring, format )
Arguments
string rawstring
- The raw (un-compressed) string to compress.
CompressedDataFormat format ("lz4")
- The format to compress the string to.
Returns
CompressedData compressedData
- A new Data object containing the compressed version of the string.
Function
Synopsis
compressedData = love.math.compress( data, format )
Arguments
Data data
- A Data object containing the raw (un-compressed) data to compress.
CompressedDataFormat format ("lz4")
- The format to compress the data to.
Returns
CompressedData compressedData
- A new Data object containing the compressed version of the raw 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