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...")
 
m (Fix i18n)
Line 33: Line 33:
 
{{#set:Description=Decode Data or a string from any of the [[EncodeFormat|EncodeFormats]] to Data or string.}}
 
{{#set:Description=Decode Data or a string from any of the [[EncodeFormat|EncodeFormats]] to Data or string.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|love.data.compress}}
+
{{i18n|love.data.decode}}

Revision as of 15:14, 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