Lines Matching refs:SDL_RWops
23 * \file SDL_rwops.h
52 typedef struct SDL_RWops
57 Sint64 (SDLCALL * size) (struct SDL_RWops * context);
65 Sint64 (SDLCALL * seek) (struct SDL_RWops * context, Sint64 offset,
74 size_t (SDLCALL * read) (struct SDL_RWops * context, void *ptr,
83 size_t (SDLCALL * write) (struct SDL_RWops * context, const void *ptr,
87 * Close and free an allocated SDL_RWops structure.
91 int (SDLCALL * close) (struct SDL_RWops * context);
143 } SDL_RWops;
149 * Functions to create SDL_RWops structures from various data streams.
153 extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
157 extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
160 extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(void * fp,
164 extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);
165 extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromConstMem(const void *mem,
171 extern DECLSPEC SDL_RWops *SDLCALL SDL_AllocRW(void);
172 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops * area);
181 * Macros to easily read and write from an SDL_RWops structure.
199 extern DECLSPEC Uint8 SDLCALL SDL_ReadU8(SDL_RWops * src);
200 extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops * src);
201 extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops * src);
202 extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops * src);
203 extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops * src);
204 extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src);
205 extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);
214 extern DECLSPEC size_t SDLCALL SDL_WriteU8(SDL_RWops * dst, Uint8 value);
215 extern DECLSPEC size_t SDLCALL SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
216 extern DECLSPEC size_t SDLCALL SDL_WriteBE16(SDL_RWops * dst, Uint16 value);
217 extern DECLSPEC size_t SDLCALL SDL_WriteLE32(SDL_RWops * dst, Uint32 value);
218 extern DECLSPEC size_t SDLCALL SDL_WriteBE32(SDL_RWops * dst, Uint32 value);
219 extern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
220 extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);