|
Beatmup
|
Android assets reader. More...
#include <asset.h>
Public Member Functions | |
| Asset (AAssetManager *manager, const char *path) | |
| ~Asset () | |
| bool | operator() (void *buffer, msize bytes) |
| Reads a given number of bytes into a specific memory location. More... | |
| bool | seek (msize pos) |
| Moves the read pointer to a given position in the stream. More... | |
| bool | eof () const |
Returns true, if the end of the stream is reached (i.e., all the data is read or the stream is empty). More... | |
Private Attributes | |
| AAsset * | asset |
Android assets reader.
Implements InputStream interface enabling access to Android assets.
| Asset::Asset | ( | AAssetManager * | manager, |
| const char * | path | ||
| ) |
Definition at line 73 of file asset.cpp.
|
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. Implements Beatmup::InputStream.
|
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. Implements Beatmup::InputStream.
Definition at line 89 of file asset.cpp.
|
virtual |
Returns true, if the end of the stream is reached (i.e., all the data is read or the stream is empty).
Implements Beatmup::InputStream.