Difference between revisions of "love.data.decode"

(Created page with "{{newin|0.11.0|110|type=function}} Decode Data or a string from any of the EncodeFormats to Data or string. == Function == === Synopsis === <source lan...")
(No difference)

Revision as of 15:12, 7 January 2018

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