love.data.compress
Compresses a string or data using a specific compression algorithm.
compressedData = love.data.compress( container, format, rawstring, level )
container ContainerType What type to return the compressed data as.
format CompressedDataFormat The format to use when compressing the string.
rawstring string The raw (un-compressed) string to compress.
level (-1) number The level of compression to use, between 0 and 9. -1 indicates the default level. The meaning of this argument depends on the compression format being used.
compressedData CompressedData or string CompressedData/string which contains the compressed version of rawstring.
compressedData = love.data.compress( container, format, data, level )
container ContainerType What type to return the compressed data as.
format CompressedDataFormat The format to use when compressing the data.
data Data A Data object containing the raw (un-compressed) data to compress.
level (-1) number The level of compression to use, between 0 and 9. -1 indicates the default level. The meaning of this argument depends on the compression format being used.
compressedData CompressedData or string CompressedData/string which contains the compressed version of data.