love.data.decode

Available since LÖVE 0.11.0
This function is not supported in earlier versions.


Decode Data or a string from any of the EncodeFormats to Data or string.

Function

Synopsis

decoded = love.data.decode( container, format, sourceString )

Arguments

ContainerType container
What type to return the decoded data as.
EncodeFormat format
The format of the input data.
string sourceString
The raw (encoded) data to decode.

Returns

value decoded
ByteData/string which contains the decoded version of source.

Function

Synopsis

decoded = love.data.decode( container, format, sourceData )

Arguments

ContainerType container
What type to return the decoded data as.
EncodeFormat format
The format of the input data.
Data sourceData
The raw (encoded) data to decode.

Returns

value decoded
ByteData/string which contains the decoded version of source.

See Also

Other Languages