#include <MemoryFile.h>
Inheritance diagram for corona::MemoryFile:
Public Methods | |
MemoryFile (const void *buffer, int size) | |
~MemoryFile () | |
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 () |
|
|
|
|
|
Read size bytes from the file, storing them in buffer.
Implements corona::File. |
|
Write size bytes from buffer to the file.
Implements corona::File. |
|
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. |
|
Get current position within the file.
Implements corona::File. |