#include <audiere.h>
Inheritance diagram for audiere::File:
Public Types | |
enum | SeekMode { BEGIN, CURRENT, END } |
Public Member Functions | |
virtual int | read (void *buffer, int size)=0 |
virtual bool | seek (int position, SeekMode mode)=0 |
virtual int | tell ()=0 |
Protected Member Functions | |
~File () |
This interface is not synchronized.
Definition at line 229 of file audiere.h.
|
The different ways you can seek within a file. |
|
|
|
Read size bytes from the file, storing them in buffer.
Implemented in audiere::CFile, and audiere::MemoryFile. |
|
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.
Referenced by audiere::GetFileLength(). |
|
Get current position within the file.
Implemented in audiere::CFile, and audiere::MemoryFile. Referenced by audiere::GetFileLength(). |