Home | History | Annotate | Download | only in SDL

Lines Matching defs:SDL_RWops

23 /** @file SDL_rwops.h
42 typedef struct SDL_RWops {
47 int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence);
53 int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
59 int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num);
62 int (SDLCALL *close)(struct SDL_RWops *context);
93 } SDL_RWops;
96 /** @name Functions to create SDL_RWops structures from various data sources */
99 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode);
102 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose);
105 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size);
106 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromConstMem(const void *mem, int size);
108 extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void);
109 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area);
120 /** @name Macros to easily read and write from an SDL_RWops structure */
131 extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src);
132 extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src);
133 extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src);
134 extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src);
135 extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src);
136 extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src);
141 extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value);
142 extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value);
143 extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value);
144 extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value);
145 extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value);
146 extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value);