There are two virtual file sources available by default: memory and file.
char* oslGetTempFileName |
( |
| ) |
|
|
inline |
void oslSetTempFileData |
( |
void * |
data, |
|
|
int |
size, |
|
|
int * |
type |
|
) |
| |
Sets the data associated to a temporary file.
const int test_data[] = {...};
const int test_data_size = 1280;
Adds a list of virtual files. You will then be able to open these files as if they were real.
- Parameters
-
const int test_jpg[] = {...};
const char *text = "This is a text file";
{
"ram:/test.jpg", (
void*)test_jpg,
sizeof(test_jpg), &
VF_MEMORY},
{
"ram:/something.txt", (
void*)text, strlen(text), &
VF_MEMORY},
};
[...]
Removes file entries from the virtual file list.