Go to the documentation of this file.
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
204 void *
ptr,
size_t size,
size_t maxnum);
Sint64(* size)(struct SDL_RWops *context)
Uint32 SDL_ReadBE32(SDL_RWops *src)
union SDL_RWops::@2 hidden
struct SDL_RWops::@2::@4 stdio
size_t(* read)(struct SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
size_t SDL_WriteLE32(SDL_RWops *dst, Uint32 value)
SDL_RWops * SDL_RWFromFP(FILE *fp, SDL_bool autoclose)
size_t SDL_WriteBE32(SDL_RWops *dst, Uint32 value)
size_t(* write)(struct SDL_RWops *context, const void *ptr, size_t size, size_t num)
void SDL_FreeRW(SDL_RWops *area)
Uint16 SDL_ReadBE16(SDL_RWops *src)
SDL_RWops * SDL_RWFromConstMem(const void *mem, int size)
struct SDL_RWops::@2::@3::@7 buffer
Sint64(* seek)(struct SDL_RWops *context, Sint64 offset, int whence)
struct SDL_RWops::@2::@6 unknown
size_t SDL_WriteU8(SDL_RWops *dst, Uint8 value)
void * SDL_LoadFile_RW(SDL_RWops *src, size_t *datasize, int freesrc)
static screen_context_t context
SDL_RWops * SDL_AllocRW(void)
size_t SDL_RWwrite(SDL_RWops *context, const void *ptr, size_t size, size_t num)
int(* close)(struct SDL_RWops *context)
int SDL_RWclose(SDL_RWops *context)
Uint16 SDL_ReadLE16(SDL_RWops *src)
Sint64 SDL_RWsize(SDL_RWops *context)
size_t SDL_WriteBE16(SDL_RWops *dst, Uint16 value)
Sint64 SDL_RWtell(SDL_RWops *context)
Uint32 SDL_ReadLE32(SDL_RWops *src)
Uint8 SDL_ReadU8(SDL_RWops *src)
struct SDL_RWops::@2::@5 mem
struct SDL_RWops::@2::@3 windowsio
size_t SDL_WriteBE64(SDL_RWops *dst, Uint64 value)
GLsizei const GLfloat * value
size_t SDL_WriteLE64(SDL_RWops *dst, Uint64 value)
Sint64 SDL_RWseek(SDL_RWops *context, Sint64 offset, int whence)
SDL_RWops * SDL_RWFromFile(const char *file, const char *mode)
Uint64 SDL_ReadBE64(SDL_RWops *src)
Uint64 SDL_ReadLE64(SDL_RWops *src)
size_t SDL_WriteLE16(SDL_RWops *dst, Uint16 value)
size_t SDL_RWread(SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr
SDL_RWops * SDL_RWFromMem(void *mem, int size)
void * SDL_LoadFile(const char *file, size_t *datasize)