|
Beatmup
|
Minimal input stream interface. More...
#include <input_stream.h>
Public Member Functions | |
| virtual bool | operator() (void *buffer, msize bytes)=0 |
| Reads a given number of bytes into a specific memory location. More... | |
| virtual bool | seek (msize pos)=0 |
| Moves the read pointer to a given position in the stream. More... | |
| virtual bool | eof () const =0 |
Returns true, if the end of the stream is reached (i.e., all the data is read or the stream is empty). More... | |
Minimal input stream interface.
Definition at line 27 of file input_stream.h.
|
pure virtual |
Reads a given number of bytes into a specific memory location.
| [in] | buffer | The address to store the data to |
| [in] | bytes | Number of bytes to read |
true on success. Implemented in Beatmup::MemoryInputStream, Beatmup::FileInputStream, and Beatmup::Android::Asset.
|
pure virtual |
Moves the read pointer to a given position in the stream.
| pos | The position in bytes from the beginning of the stream |
true on success. Implemented in Beatmup::MemoryInputStream, Beatmup::FileInputStream, and Beatmup::Android::Asset.
|
pure virtual |
Returns true, if the end of the stream is reached (i.e., all the data is read or the stream is empty).
Implemented in Beatmup::MemoryInputStream, Beatmup::FileInputStream, and Beatmup::Android::Asset.