OldSchool Library
RAM virtual files

Functions

void oslSetTempFileData (void *data, int size, int *type)
 Sets the data associated with a temporary file.
 
int oslAddVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries)
 Adds a list of virtual files.
 
void oslRemoveVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries)
 Removes file entries from the virtual file list.
 

Detailed Description

RAM-based virtual file sources.

Function Documentation

◆ oslSetTempFileData()

void oslSetTempFileData ( void * data,
int size,
int * type )
extern

Sets the data associated with a temporary file.

Parameters
dataPointer to the data to associate with the temporary file.
sizeSize of the data.
typePointer to the file type (e.g., &VF_MEMORY).

◆ oslAddVirtualFileList()

int oslAddVirtualFileList ( OSL_VIRTUALFILENAME * vfl,
int numberOfEntries )
extern

Adds a list of virtual files.

This function allows the addition of files to the virtual file list, making them accessible as if they were real files.

Parameters
vflPointer to an array of OSL_VIRTUALFILENAME entries.
numberOfEntriesNumber of entries in the array.

◆ oslRemoveVirtualFileList()

void oslRemoveVirtualFileList ( OSL_VIRTUALFILENAME * vfl,
int numberOfEntries )
extern

Removes file entries from the virtual file list.

Parameters
vflPointer to an array of OSL_VIRTUALFILENAME entries.
numberOfEntriesNumber of entries in the array.