#include <SDL_rwops.h>
Public Member Functions | |
int (SDLCALL *seek)(struct SDL_RWops *context | |
int (SDLCALL *read)(struct SDL_RWops *context | |
int (SDLCALL *write)(struct SDL_RWops *context | |
int (SDLCALL *close)(struct SDL_RWops *context) | |
Data Fields | |
int | offset |
int int | whence |
void * | ptr |
void int | size |
void int int | maxnum |
const void * | ptr |
const void int | size |
const void int int | num |
Uint32 | type |
union { | |
struct { | |
Uint8 * base | |
Uint8 * here | |
Uint8 * stop | |
} mem | |
struct { | |
void * data1 | |
} unknown | |
} | hidden |
int | ( | SDLCALL * | close | ) |
Close and free an allocated SDL_FSops structure
int | ( | SDLCALL * | write | ) |
Write exactly 'num' objects each of size 'objsize' from the area pointed at by 'ptr' to data source. Returns 'num', or -1 if the write failed.
int | ( | SDLCALL * | read | ) |
Read up to 'maxnum' objects each of size 'size' from the data source to the area pointed at by 'ptr'. Returns the number of objects read, or -1 if the read failed.
int | ( | SDLCALL * | seek | ) |
Seek to 'offset' relative to whence, one of stdio's whence values: SEEK_SET, SEEK_CUR, SEEK_END Returns the final offset in the data source.