Creates a new FileData object.
data = love.filesystem.newFileData( contents, name )
string contents
string name
FileData data
Available since LÖVE 0.9.0 |
This variant is not supported in earlier versions. |
Creates a new FileData from a file on the storage device.
data, err = love.filesystem.newFileData( filepath )
string filepath
FileData data
string err
Removed in LÖVE 11.0 |
The variant which decodes base64 data has been replaced by love.data.decode. |
data = love.filesystem.newFileData( contents, name, decoder )
string contents
string name
FileDecoder decoder
FileData data