|
SDL 2.0
|
#include <SDL_rwops.h>
Data Fields | |
| Sint64(* | size )(struct SDL_RWops *context) |
| Sint64(* | seek )(struct SDL_RWops *context, Sint64 offset, int whence) |
| size_t(* | read )(struct SDL_RWops *context, void *ptr, size_t size, size_t maxnum) |
| size_t(* | write )(struct SDL_RWops *context, const void *ptr, size_t size, size_t num) |
| int(* | close )(struct SDL_RWops *context) |
| Uint32 | type |
| union { | |
| struct { | |
| SDL_bool append | |
| void * h | |
| struct { | |
| void * data | |
| size_t size | |
| size_t left | |
| } buffer | |
| } windowsio | |
| struct { | |
| SDL_bool autoclose | |
| FILE * fp | |
| } stdio | |
| struct { | |
| Uint8 * base | |
| Uint8 * here | |
| Uint8 * stop | |
| } mem | |
| struct { | |
| void * data1 | |
| void * data2 | |
| } unknown | |
| } | hidden |
This is the read/write operation structure – very basic.
Definition at line 54 of file SDL_rwops.h.
| SDL_bool SDL_RWops::append |
Definition at line 106 of file SDL_rwops.h.
| SDL_bool SDL_RWops::autoclose |
Definition at line 120 of file SDL_rwops.h.
| Uint8* SDL_RWops::base |
Definition at line 126 of file SDL_rwops.h.
| struct { ... } SDL_RWops::buffer |
| int(* SDL_RWops::close) (struct SDL_RWops *context) |
Close and free an allocated SDL_RWops structure.
Definition at line 93 of file SDL_rwops.h.
| void* SDL_RWops::data |
Definition at line 110 of file SDL_rwops.h.
| void* SDL_RWops::data1 |
Definition at line 132 of file SDL_rwops.h.
| void* SDL_RWops::data2 |
Definition at line 133 of file SDL_rwops.h.
| FILE* SDL_RWops::fp |
Definition at line 121 of file SDL_rwops.h.
| void* SDL_RWops::h |
Definition at line 107 of file SDL_rwops.h.
| Uint8* SDL_RWops::here |
Definition at line 127 of file SDL_rwops.h.
| union { ... } SDL_RWops::hidden |
| size_t SDL_RWops::left |
Definition at line 112 of file SDL_rwops.h.
| struct { ... } SDL_RWops::mem |
Read up to maxnum objects each of size size from the data stream to the area pointed at by ptr.
Definition at line 76 of file SDL_rwops.h.
Seek to offset relative to whence, one of stdio's whence values: RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END
Definition at line 67 of file SDL_rwops.h.
| size_t SDL_RWops::size |
Definition at line 111 of file SDL_rwops.h.
Return the size of the file in this rwops, or -1 if unknown
Definition at line 59 of file SDL_rwops.h.
| struct { ... } SDL_RWops::stdio |
| Uint8* SDL_RWops::stop |
Definition at line 128 of file SDL_rwops.h.
| Uint32 SDL_RWops::type |
Definition at line 95 of file SDL_rwops.h.
| struct { ... } SDL_RWops::unknown |
| struct { ... } SDL_RWops::windowsio |
Write exactly num objects each of size size from the area pointed at by ptr to data stream.
Definition at line 85 of file SDL_rwops.h.