DSL
|
Public Attributes | |
bool(* | seek )(DSL_FILE *fp, int64 pos, int mode) |
int64(* | read )(void *buf, int64 size, DSL_FILE *fp) |
int64(* | write )(void *buf, int64 size, DSL_FILE *fp) |
int64(* | tell )(DSL_FILE *fp) |
bool(* | flush )(DSL_FILE *fp) |
bool(* | eof )(DSL_FILE *fp) |
void(* | close )(DSL_FILE *fp) |
union { | |
FILE * fp | |
void * handle | |
}; | |
void * | p_extra |
void(* DSL_FILE::close) (DSL_FILE *fp) |
Close the handle when you are done.
Definition at line 54 of file rwops.h.
Referenced by hashfile(), hashfile_fp(), hmacfile(), hmacfile_fp(), RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().
bool(* DSL_FILE::eof) (DSL_FILE *fp) |
Are we at the end of the file?
Definition at line 50 of file rwops.h.
Referenced by RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().
int64(* DSL_FILE::read) (void *buf, int64 size, DSL_FILE *fp) |
Read data from the file.
Definition at line 36 of file rwops.h.
Referenced by hashfile_rw(), hmacfile_rw(), RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().
bool(* DSL_FILE::seek) (DSL_FILE *fp, int64 pos, int mode) |
Seek within the file.
fp | The file handle |
pos | The position to seek to, in accordance with what you set the mode to. |
mode | SEEK_SET/SEEK_CUR/SEEK_END as in fseek |
Definition at line 31 of file rwops.h.
Referenced by hashfile_rw(), hmacfile_rw(), RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().
int64(* DSL_FILE::tell) (DSL_FILE *fp) |
The current position of the pointer within the file.
Definition at line 45 of file rwops.h.
Referenced by hashfile_rw(), hmacfile_rw(), RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().
int64(* DSL_FILE::write) (void *buf, int64 size, DSL_FILE *fp) |
Write data to the file.
Definition at line 41 of file rwops.h.
Referenced by RW_ConvertBuffer(), RW_ConvertFile(), RW_ConvertMemory(), RW_OpenBuffer(), and RW_OpenFile().