42 #define SDL_RWOPS_UNKNOWN 0U 43 #define SDL_RWOPS_WINFILE 1U 44 #define SDL_RWOPS_STDFILE 2U 45 #define SDL_RWOPS_JNIFILE 3U 46 #define SDL_RWOPS_MEMORY 4U 47 #define SDL_RWOPS_MEMORY_RO 5U 75 size_t size,
size_t maxnum);
96 #if defined(__ANDROID__) 100 void *inputStreamRef;
101 void *readableByteChannelRef;
103 void *assetFileDescriptorRef;
109 #elif defined(__WIN32__) 174 #define RW_SEEK_SET 0 175 #define RW_SEEK_CUR 1 176 #define RW_SEEK_END 2 184 #define SDL_RWsize(ctx) (ctx)->size(ctx) 185 #define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) 186 #define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) 187 #define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) 188 #define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) 189 #define SDL_RWclose(ctx) (ctx)->close(ctx) 214 #define SDL_LoadFile(file, datasize) SDL_LoadFile_RW(SDL_RWFromFile(file, "rb"), datasize, 1) Uint32 SDL_ReadBE32(SDL_RWops *src)
SDL_RWops * SDL_RWFromFP(FILE *fp, SDL_bool autoclose)
static screen_context_t context
size_t(* write)(struct SDL_RWops *context, const void *ptr, size_t size, size_t num)
Uint16 SDL_ReadBE16(SDL_RWops *src)
SDL_RWops * SDL_RWFromConstMem(const void *mem, int size)
size_t SDL_WriteLE32(SDL_RWops *dst, Uint32 value)
void SDL_FreeRW(SDL_RWops *area)
size_t SDL_WriteBE32(SDL_RWops *dst, Uint32 value)
struct SDL_RWops::@10::@11 windowsio
struct SDL_RWops::@10::@13 mem
size_t SDL_WriteU8(SDL_RWops *dst, Uint8 value)
struct SDL_RWops::@10::@12 stdio
Sint64(* seek)(struct SDL_RWops *context, Sint64 offset, int whence)
struct SDL_RWops::@10::@11::@15 buffer
size_t SDL_WriteBE16(SDL_RWops *dst, Uint16 value)
void * SDL_LoadFile_RW(SDL_RWops *src, size_t *datasize, int freesrc)
SDL_RWops * SDL_AllocRW(void)
int(* close)(struct SDL_RWops *context)
Uint16 SDL_ReadLE16(SDL_RWops *src)
GLsizei const GLfloat * value
Uint32 SDL_ReadLE32(SDL_RWops *src)
size_t SDL_WriteBE64(SDL_RWops *dst, Uint64 value)
Sint64(* size)(struct SDL_RWops *context)
Uint8 SDL_ReadU8(SDL_RWops *src)
union SDL_RWops::@10 hidden
size_t(* read)(struct SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
Uint64 SDL_ReadBE64(SDL_RWops *src)
struct SDL_RWops::@10::@14 unknown
size_t SDL_WriteLE64(SDL_RWops *dst, Uint64 value)
size_t SDL_WriteLE16(SDL_RWops *dst, Uint16 value)
SDL_RWops * SDL_RWFromFile(const char *file, const char *mode)
SDL_RWops * SDL_RWFromMem(void *mem, int size)
Uint64 SDL_ReadLE64(SDL_RWops *src)