#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "begin_code.h"
#include "close_code.h"
Go to the source code of this file.
Data Structures | |
struct | SDL_RWops |
Defines | |
Seek Reference Points | |
#define | RW_SEEK_SET 0 |
#define | RW_SEEK_CUR 1 |
#define | RW_SEEK_END 2 |
Macros to easily read and write from an SDL_RWops structure | |
#define | SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) |
#define | SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) |
#define | SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) |
#define | SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) |
#define | SDL_RWclose(ctx) (ctx)->close(ctx) |
Functions | |
Functions to create SDL_RWops structures from various data sources | |
DECLSPEC SDL_RWops *SDLCALL | SDL_RWFromFile (const char *file, const char *mode) |
DECLSPEC SDL_RWops *SDLCALL | SDL_RWFromMem (void *mem, int size) |
DECLSPEC SDL_RWops *SDLCALL | SDL_RWFromConstMem (const void *mem, int size) |
DECLSPEC SDL_RWops *SDLCALL | SDL_AllocRW (void) |
DECLSPEC void SDLCALL | SDL_FreeRW (SDL_RWops *area) |
Read an item of the specified endianness and return in native format | |
DECLSPEC Uint16 SDLCALL | SDL_ReadLE16 (SDL_RWops *src) |
DECLSPEC Uint16 SDLCALL | SDL_ReadBE16 (SDL_RWops *src) |
DECLSPEC Uint32 SDLCALL | SDL_ReadLE32 (SDL_RWops *src) |
DECLSPEC Uint32 SDLCALL | SDL_ReadBE32 (SDL_RWops *src) |
DECLSPEC Uint64 SDLCALL | SDL_ReadLE64 (SDL_RWops *src) |
DECLSPEC Uint64 SDLCALL | SDL_ReadBE64 (SDL_RWops *src) |
Write an item of native format to the specified endianness | |
DECLSPEC int SDLCALL | SDL_WriteLE16 (SDL_RWops *dst, Uint16 value) |
DECLSPEC int SDLCALL | SDL_WriteBE16 (SDL_RWops *dst, Uint16 value) |
DECLSPEC int SDLCALL | SDL_WriteLE32 (SDL_RWops *dst, Uint32 value) |
DECLSPEC int SDLCALL | SDL_WriteBE32 (SDL_RWops *dst, Uint32 value) |
DECLSPEC int SDLCALL | SDL_WriteLE64 (SDL_RWops *dst, Uint64 value) |
DECLSPEC int SDLCALL | SDL_WriteBE64 (SDL_RWops *dst, Uint64 value) |
#define RW_SEEK_CUR 1 |
Seek relative to current read point
#define RW_SEEK_END 2 |
Seek relative to the end of data
#define RW_SEEK_SET 0 |
Seek from the beginning of data