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
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)