love.data.encode
Available since LÖVE 0.11.0 |
This function is not supported in earlier versions. |
Encode Data or a string to a Data or string in one of the EncodeFormats.
Contents
Function
Synopsis
encoded = love.data.encode( container, format, sourceString, linelength )
Arguments
ContainerType container
- What type to return the encoded data as.
EncodeFormat format
- The format of the output data.
string sourceString
- The raw data to encode.
number linelength (0)
- The maximum line length of the output. Only supported for base64, ignored if 0.
Returns
Function
Synopsis
encoded = love.data.encode( container, format, sourceData, linelength )
Arguments
ContainerType container
- What type to return the encoded data as.
EncodeFormat format
- The format of the output data.
Data sourceData
- The raw data to encode.
number linelength (0)
- The maximum line length of the output. Only supported for base64, ignored if 0.
Returns
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info