Helper class to handle file operations.
More...
Inherited by FileUtilsTizen.
Helper class to handle file operations.
static void setDelegate |
( |
FileUtils * |
delegate | ) |
|
|
static |
You can inherit from platform dependent implementation of FileUtils, such as FileUtilsAndroid, and use this function to set delegate, then FileUtils will invoke delegate's implementation.
For example, your resources are encrypted, so you need to decrypt it after reading data from resources, then you can implement all getXXX functions, and engine will invoke your own getXX functions when reading data of resources.
If you don't want to system default implementation after setting delegate, you can just pass nullptr to this function.
It will delete previous delegate
var setDelegate |
( |
var |
delegate | ) |
|
|
static |
You can inherit from platform dependent implementation of FileUtils, such as FileUtilsAndroid, and use this function to set delegate, then FileUtils will invoke delegate's implementation.
For example, your resources are encrypted, so you need to decrypt it after reading data from resources, then you can implement all getXXX functions, and engine will invoke your own getXX functions when reading data of resources.
If you don't want to system default implementation after setting delegate, you can just pass nullptr to this function.
It will delete previous delegate
local sharedFileUtils |
( |
| ) |
|
|
inlinestatic |
static void purgeFileUtils |
( |
| ) |
|
|
inlinestatic |
virtual Data getDataFromFile |
( |
const std::string & |
filename | ) |
|
|
virtual |
Creates binary data from a file.
A data object.
var getDataFromFile |
( |
var |
filename | ) |
|
|
virtual |
Creates binary data from a file.
A data object.
local getDataFromFile |
( |
local |
filename | ) |
|
|
virtual |
Creates binary data from a file.
A data object.
The documentation for this class was generated from the following file: