|
| #define | VirtualFileWrite(ptr, size, n, f) (VirtualFileGetSource(f)->fWrite(ptr, size, n, f)) |
| | Writes data to a file.
|
| |
| #define | VirtualFileRead(ptr, size, n, f) (VirtualFileGetSource(f)->fRead(ptr, size, n, f)) |
| | Reads data from a file.
|
| |
| #define | VirtualFileGetc(f) (VirtualFileGetSource(f)->fGetc(f)) |
| | Reads a single character from a file.
|
| |
| #define | VirtualFilePutc(caractere, f) (VirtualFileGetSource(f)->fPutc(caractere, f)) |
| | Writes a single character to a file.
|
| |
| #define | VirtualFileGets(str, maxLen, f) (VirtualFileGetSource(f)->fGets(str, maxLen, f)) |
| | Reads a string from a file.
|
| |
| #define | VirtualFilePuts(s, f) (VirtualFileGetSource(f)->fPuts(s, f)) |
| | Writes a string to a file.
|
| |
| #define | VirtualFileSeek(f, offset, whence) (VirtualFileGetSource(f)->fSeek(f, offset, whence)) |
| | Sets the current file position.
|
| |
| #define | VirtualFileTell(f) (VirtualFileGetSource(f)->fTell(f)) |
| | Returns the current file pointer position.
|
| |
| #define | VirtualFileEof(f) (VirtualFileGetSource(f)->fEof(f)) |
| | Checks if the end of a file has been reached.
|
| |
|
#define | VF_MAX_SOURCES 16 |
| | Maximum number of virtual file sources.
|
| |
| #define | VirtualFileGetSource(vf) (VirtualFileSources[(vf)->type]) |
| | Gets a pointer to the virtual file source associated with a given virtual file.
|
| |
| #define | VF_AUTO -2 |
| | Auto-select source.
|
| |
|
|
VIRTUAL_FILE_SOURCE * | VirtualFileSources [VF_MAX_SOURCES] |
| | List of virtual file sources.
|
| |
|
int | VirtualFileSourcesNb |
| | Number of registered virtual file sources.
|
| |
|
OSL_VIRTUALFILENAME * | osl_virtualFileList |
| | List of virtual filenames used for RAM-based virtual files.
|
| |
|
int | osl_virtualFileListNumber |
| | Number of entries in the virtual file list.
|
| |
|
int | osl_defaultVirtualFileSource |
| | Default virtual file source type.
|
| |
|
const char * | osl_tempFileName |
| | Name of the temporary virtual file.
|
| |
|
int | VF_MEMORY |
| | Memory-based virtual file source.
|
| |
|
int | VF_FILE |
| | File-based virtual file source.
|
| |
Virtual File Support Header File.
This file contains functions and definitions related to Virtual File operations in the Oldschool Library (OSLib). It provides a universal interface for manipulating various file sources, including memory and standard file I/O, allowing users to define their own.