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, depending on the compression format and level, can be slow if called repeatedly, such as from love.update or love.draw. Some benchmarks are available here.
compressedData = love.math.compress( rawstring, format, level )
string rawstring
CompressedDataFormat format ("lz4")
number level (-1)
CompressedData compressedData
compressedData = love.math.compress( data, format, level )
Data data
CompressedDataFormat format ("lz4")
number level (-1)
CompressedData compressedData
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.math.compress