Public Methods | |
CFile (FILE *file) | |
~CFile () | |
int COR_CALL | read (void *buffer, int size) |
int COR_CALL | write (const void *buffer, int size) |
bool COR_CALL | seek (int position, SeekMode mode) |
int COR_CALL | tell () |
|
Definition at line 8 of file DefaultFileSystem.cpp. |
|
Definition at line 12 of file DefaultFileSystem.cpp. |
|
Read size bytes from the file, storing them in buffer.
Implements corona::File. Definition at line 16 of file DefaultFileSystem.cpp. References COR_CALL, and corona::hidden::size. |
|
Write size bytes from buffer to the file.
Implements corona::File. Definition at line 20 of file DefaultFileSystem.cpp. References COR_CALL, and corona::hidden::size. |
|
Jump to a new position in the file, using the specified seek mode. Remember: if mode is END, the position must be negative, to seek backwards from the end of the file into its contents. If the seek fails, the current position is undefined.
Implements corona::File. Definition at line 24 of file DefaultFileSystem.cpp. References corona::File::BEGIN, COR_CALL, corona::File::CURRENT, corona::File::END, and corona::File::SeekMode. |
|
Get current position within the file.
Implements corona::File. Definition at line 35 of file DefaultFileSystem.cpp. References COR_CALL. |