Data Structures | |
struct | VIRTUAL_FILE |
struct | VIRTUAL_FILE_SOURCE |
struct | OSL_VIRTUALFILENAME |
Defines | |
#define | VirtualFileWrite(ptr, size, n, f) (VirtualFileGetSource(f)->fWrite(ptr, size, n, f)) |
#define | VirtualFileRead(ptr, size, n, f) (VirtualFileGetSource(f)->fRead(ptr, size, n, f)) |
#define | VirtualFileGetc(f) (VirtualFileGetSource(f)->fGetc(f)) |
#define | VirtualFilePutc(caractere, f) (VirtualFileGetSource(f)->fPutc(caractere, f)) |
#define | VirtualFileGets(str, maxLen, f) (VirtualFileGetSource(f)->fGets(str, maxLen, f)) |
#define | VirtualFilePuts(s, f) (VirtualFileGetSource(f)->fPuts(s, f)) |
#define | VirtualFileSeek(f, offset, whence) (VirtualFileGetSource(f)->fSeek(f, offset, whence)) |
#define | VirtualFileTell(f) (VirtualFileGetSource(f)->fTell(f)) |
#define | VirtualFileEof(f) (VirtualFileGetSource(f)->fEof(f)) |
#define | VF_AUTO -2 |
Enumerations | |
enum | VF_OPEN_MODES { VF_O_READ, VF_O_READWRITE, VF_O_WRITE } |
Functions | |
void | VirtualFileInit () |
VIRTUAL_FILE * | VirtualFileOpen (void *param1, int param2, int type, int mode) |
int | VirtualFileClose (VIRTUAL_FILE *f) |
int | VirtualFileRegisterSource (VIRTUAL_FILE_SOURCE *vfs) |
OSL_VIRTUALFILENAME * | oslFindFileInVirtualFilenameList (const char *fname, int type) |
void * | oslReadEntireFileToMemory (VIRTUAL_FILE *f, int *size) |
int | oslInitVfsFile () |
void | oslSetDefaultVirtualFileSource (int source) |
char * | oslGetTempFileName () |
void | oslSetTempFileData (void *data, int size, int *type) |
int | oslAddVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries) |
void | oslRemoveVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries) |
Variables | |
int | VF_MEMORY |
int | VF_FILE |