SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | _LARGEFILE64_SOURCE |
#define _LARGEFILE64_SOURCE |
Definition at line 26 of file SDL_rwops.c.
|
static |
Definition at line 499 of file SDL_rwops.c.
References SDL_FreeRW().
Referenced by SDL_RWFromConstMem(), and SDL_RWFromMem().
Definition at line 458 of file SDL_rwops.c.
References SDL_RWops::hidden, SDL_RWops::mem, SDL_memcpy, and SDLCALL.
Referenced by SDL_RWFromConstMem(), and SDL_RWFromMem().
Definition at line 430 of file SDL_rwops.c.
References SDL_RWops::hidden, SDL_RWops::mem, RW_SEEK_CUR, RW_SEEK_END, RW_SEEK_SET, SDL_SetError, and SDLCALL.
Referenced by SDL_RWFromConstMem(), and SDL_RWFromMem().
Definition at line 424 of file SDL_rwops.c.
References SDL_RWops::hidden, SDL_RWops::mem, and SDLCALL.
Referenced by SDL_RWFromConstMem(), and SDL_RWFromMem().
Definition at line 481 of file SDL_rwops.c.
References SDL_RWops::hidden, SDL_RWops::mem, SDL_memcpy, and SDLCALL.
Referenced by SDL_RWFromMem().
|
static |
Definition at line 492 of file SDL_rwops.c.
References SDL_SetError, and SDLCALL.
Referenced by SDL_RWFromConstMem().
Definition at line 682 of file SDL_rwops.c.
References NULL, SDL_malloc, SDL_OutOfMemory, SDL_RWOPS_UNKNOWN, and SDL_RWops::type.
Referenced by SDL_RWFromConstMem(), SDL_RWFromFile(), and SDL_RWFromMem().
Definition at line 696 of file SDL_rwops.c.
References SDL_free.
Referenced by mem_close(), and SDL_RWFromFile().
Load all the data from an SDL data stream.
The data is allocated with a zero byte at the end (null terminated)
If datasize
is not NULL, it is filled with the size of the data read.
If freesrc
is non-zero, the stream will be closed after being read.
The data should be freed with SDL_free().
Definition at line 703 of file SDL_rwops.c.
References done, NULL, SDL_free, SDL_InvalidParamError, SDL_malloc, SDL_OutOfMemory, SDL_realloc, SDL_RWclose, SDL_RWread, and SDL_RWsize.
Definition at line 654 of file SDL_rwops.c.
References SDL_RWops::close, SDL_RWops::hidden, SDL_RWops::mem, mem_close(), mem_read(), mem_seek(), mem_size(), mem_writeconst(), NULL, SDL_RWops::read, SDL_AllocRW(), SDL_InvalidParamError, SDL_RWOPS_MEMORY_RO, SDL_RWops::seek, SDL_RWops::size, SDL_RWops::type, and SDL_RWops::write.
SDL_RWops* SDL_RWFromFile | ( | const char * | file, |
const char * | mode | ||
) |
Definition at line 511 of file SDL_rwops.c.
References Android_JNI_FileClose(), Android_JNI_FileOpen(), Android_JNI_FileRead(), Android_JNI_FileSeek(), Android_JNI_FileSize(), Android_JNI_FileWrite(), SDL_RWops::close, SDL_RWops::hidden, NULL, SDL_RWops::read, SDL_AllocRW(), SDL_AndroidGetInternalStoragePath, SDL_FreeRW(), SDL_RWFromFP(), SDL_RWOPS_JNIFILE, SDL_RWOPS_STDFILE, SDL_RWOPS_WINFILE, SDL_SetError, SDL_snprintf, SDL_stack_alloc, SDL_stack_free, SDL_RWops::seek, SDL_RWops::size, SDL_RWops::stdio, SDL_RWops::type, and SDL_RWops::write.
Definition at line 618 of file SDL_rwops.c.
References NULL, and SDL_SetError.
Referenced by SDL_RWFromFile().
Definition at line 626 of file SDL_rwops.c.
References SDL_RWops::close, SDL_RWops::hidden, SDL_RWops::mem, mem_close(), mem_read(), mem_seek(), mem_size(), mem_write(), NULL, SDL_RWops::read, SDL_AllocRW(), SDL_InvalidParamError, SDL_RWOPS_MEMORY, SDL_RWops::seek, SDL_RWops::size, SDL_RWops::type, and SDL_RWops::write.