love.data.encode
Encode Data or a string to a Data or string in one of the EncodeFormats.
encoded = love.data.encode( container, format, sourceString, linelength )
container ContainerType What type to return the encoded data as.
format EncodeFormat The format of the output data.
sourceString string The raw data to encode.
linelength (0) number The maximum line length of the output. Only supported for base64, ignored if 0.
encoded ByteData or string ByteData/string which contains the encoded version of source.
encoded = love.data.encode( container, format, sourceData, linelength )
container ContainerType What type to return the encoded data as.
format EncodeFormat The format of the output data.
sourceData Data The raw data to encode.
linelength (0) number The maximum line length of the output. Only supported for base64, ignored if 0.
encoded ByteData or string ByteData/string which contains the encoded version of source.