|
|
| MF_API int MFFile_Read |
( |
MFFile * |
pFile, |
|
|
void * |
pBuffer, |
|
|
size_t |
bytes, |
|
|
bool |
async = false |
|
) |
| |
Reads data from a file.
- Parameters
-
| pFile | Pointer to an open file. |
| pBuffer | Pointer to a buffer where the read data will be stored. |
| bytes | Number of bytes to read. |
| async | If true, the read will be performed asyncrenously, putting the file into a 'busy' state. |
- Returns
- The number of bytes read.
|