|
|
std::string | rootname |
| |
|
Filesystem::Path | streamingAssetsPath |
| |
◆ Exists()
- Returns
- true if the VFS has the file at the path
◆ FileContentsAt() [1/2]
template<
typename vec = RavEngine::Vector<uint8_t>>
Get the file data as a string
- Parameters
-
| path | the resources path to the asset |
| nullTerminate | whether to add a null byte to the end of the data |
- Returns
- the file data
◆ FileContentsAt() [2/2]
template<
typename vec = RavEngine::Vector<uint8_t>>
| void RavEngine::VirtualFilesystem::FileContentsAt |
( |
const char * |
path, |
|
|
vec & |
datavec, |
|
|
bool |
nullTerminate = true |
|
) |
| |
|
inline |
Get the file data in a vector
- Parameters
-
| path | the resources path to the asset |
| nullTerminate | whether to add a null byte to the end of the data |
| datavec | the vector to write the data into |
◆ IterateDirectory()
| void RavEngine::VirtualFilesystem::IterateDirectory |
( |
const char * |
path, |
|
|
Function< void(const std::string &)> |
callback |
|
) |
| |
Get all the files in a directory
- Parameters
-
| path | the path to the folder |
| callback | function to call on each filename |
The documentation for this class was generated from the following files: