#include <corona.h>
Inheritance diagram for corona::File:
Public Types | |
enum | SeekMode { BEGIN, CURRENT, END } |
Public Methods | |
virtual int COR_CALL | read (void *buffer, int size)=0 |
virtual int COR_CALL | write (const void *buffer, int size)=0 |
virtual bool COR_CALL | seek (int position, SeekMode mode)=0 |
virtual int COR_CALL | tell ()=0 |
Definition at line 224 of file corona.h.
|
The different ways you can seek within a file.
Definition at line 230 of file corona.h. Referenced by corona::CFile::seek(). |
|
Read size bytes from the file, storing them in buffer.
Implemented in corona::CFile, and corona::MemoryFile. Referenced by corona::DecodeBitmap(), corona::InputFunc(), corona::JPEG_fill_input_buffer(), corona::OpenPCX(), corona::OpenPNG(), corona::OpenTGA(), corona::PNG_read_function(), corona::ReadHeader(), corona::ReadInfoHeader(), corona::ReadPalette(), and corona::ReadScanline(). |
|
Write size bytes from buffer to the file.
Implemented in corona::CFile, and corona::MemoryFile. Referenced by corona::PNG_write(), and corona::SaveTGA(). |
|
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.
Implemented in corona::CFile, and corona::MemoryFile. Referenced by corona::DecodeBitmap(), corona::OpenPCX(), and corona::ReadInfoHeader(). |
|
Get current position within the file.
Implemented in corona::CFile, and corona::MemoryFile. |