|
MF_API const char * | MFFile_SystemPath (const char *filename=NULL) |
| Gets the system file path. More...
|
|
MF_API const char * | MFFile_HomePath (const char *filename=NULL) |
| Gets the system home path. More...
|
|
MF_API MFFile * | MFFile_Open (MFFileSystemHandle fileSystem, MFOpenData *pOpenData) |
| Open a file. More...
|
|
MF_API int | MFFile_Close (MFFile *pFile) |
| Close a file. More...
|
|
MF_API int | MFFile_Read (MFFile *pFile, void *pBuffer, size_t bytes, bool async=false) |
| Read data from a file. More...
|
|
MF_API int | MFFile_Write (MFFile *pFile, const void *pBuffer, size_t bytes, bool async=false) |
| Write to a file. More...
|
|
MF_API int | MFFile_Seek (MFFile *pFile, int bytes, MFFileSeek relativity) |
| Seek the file. More...
|
|
MF_API int | MFFile_Tell (MFFile *pFile) |
| Tell the file position. More...
|
|
MF_API int64 | MFFile_GetSize (MFFile *pFile) |
| Get the size of a file. More...
|
|
MF_API bool | MFFile_IsEOF (MFFile *pFile) |
| Check for end of file. More...
|
|
MF_API int | MFFile_StdClose (void *stream) |
| Close a file. More...
|
|
MF_API size_t | MFFile_StdRead (void *buffer, size_t size, size_t count, void *stream) |
| Read data from a file. More...
|
|
MF_API size_t | MFFile_StdWrite (const void *buffer, size_t size, size_t count, void *stream) |
| Write to a file. More...
|
|
MF_API long | MFFile_StdSeek (void *stream, long offset, int whence) |
| Seek the file. More...
|
|
MF_API long | MFFile_StdTell (void *stream) |
| Tell the file position. More...
|
|
MF_API MFFileSystemHandle | MFFileSystem_GetInternalFileSystemHandle (MFFileSystemHandles fileSystemHandle) |
| Get a handle to a specific filesystem. More...
|
|
MF_API int | MFFileSystem_Mount (MFFileSystemHandle fileSystem, MFMountData *pMountData) |
| Mounts a filesystem. More...
|
|
MF_API int | MFFileSystem_MountFujiPath (const char *pMountpoint, const char *pFujiPath, int priority=MFMP_Normal, uint32 flags=0) |
| Mounts a filesystem from a fuji path. More...
|
|
MF_API int | MFFileSystem_Dismount (const char *pMountpoint) |
| Dismount a filesystem. More...
|
|
MF_API MFFile * | MFFileSystem_Open (const char *pFilename, uint32 openFlags=MFOF_Read|MFOF_Binary) |
| Open a file from the mounted filesystem stack. More...
|
|
MF_API char * | MFFileSystem_Load (const char *pFilename, size_t *pBytesRead=NULL, size_t extraBytes=0) |
| Load a file from the filesystem. More...
|
|
MF_API int | MFFileSystem_Save (const char *pFilename, const char *pBuffer, size_t size) |
| Write a file to a filesystem. More...
|
|
MF_API int64 | MFFileSystem_GetSize (const char *pFilename) |
| Get the size of a file. More...
|
|
MF_API bool | MFFileSystem_Exists (const char *pFilename) |
| See if a file is available to the filesystem. More...
|
|
MF_API const char * | MFFileSystem_ResolveSystemPath (const char *pFilename, bool bAbsolute=false) |
| Resolve the system path to a file. More...
|
|
MF_API int | MFFileSystem_GetNumVolumes () |
| Get number of available volumes. More...
|
|
MF_API void | MFFileSystem_GetVolumeInfo (int volumeID, MFVolumeInfo *pVolumeInfo) |
| Get volume mount details. More...
|
|
MF_API MFFind * | MFFileSystem_FindFirst (const char *pSearchPattern, MFFindData *pFindData) |
| Begin a find for files. More...
|
|
MF_API bool | MFFileSystem_FindNext (MFFind *pFind, MFFindData *pFindData) |
| Find the next file. More...
|
|
MF_API void | MFFileSystem_FindClose (MFFind *pFind) |
| Close an open find. More...
|
|