|
corona
1.0.2
|
#include <MemoryFile.h>


Public Member Functions | |
| 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 () |
Definition at line 12 of file MemoryFile.h.
| corona::MemoryFile::MemoryFile | ( | const void * | buffer, |
| int | size | ||
| ) |
Definition at line 31 of file MemoryFile.cpp.
Definition at line 40 of file MemoryFile.cpp.
| int COR_CALL corona::MemoryFile::read | ( | void * | buffer, |
| int | size | ||
| ) | [virtual] |
Read size bytes from the file, storing them in buffer.
| buffer | buffer to read into |
| size | number of bytes to read |
Implements corona::File.
Definition at line 44 of file MemoryFile.cpp.
| int COR_CALL corona::MemoryFile::write | ( | const void * | buffer, |
| int | size | ||
| ) | [virtual] |
Write size bytes from buffer to the file.
| buffer | buffer that contains the data to write |
| size | number of bytes to write |
Implements corona::File.
Definition at line 51 of file MemoryFile.cpp.
| bool COR_CALL corona::MemoryFile::seek | ( | int | position, |
| SeekMode | mode | ||
| ) | [virtual] |
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.
| position | position relative to the mode |
| mode | where to seek from in the file |
Implements corona::File.
Definition at line 58 of file MemoryFile.cpp.
| int COR_CALL corona::MemoryFile::tell | ( | ) | [virtual] |
Get current position within the file.
Implements corona::File.
Definition at line 76 of file MemoryFile.cpp.
1.7.6.1