|
Public Types |
typedef int(* | read_func )(void *dst, int bytes, void *appdata) |
typedef int(* | write_func )(const void *src, int bytes, void *appdata) |
typedef int(* | seek_func )(int pos, void *appdata) |
typedef int(* | seek_to_end_func )(void *appdata) |
typedef int(* | tell_func )(void *appdata) |
typedef bool(* | get_eof_func )(void *appdata) |
typedef int(* | close_func )(void *appdata) |
enum | memory_buffer_enum { memory_buffer
} |
Public Member Functions |
| tu_file (void *appdata, read_func rf, write_func wf, seek_func sf, seek_to_end_func ef, tell_func tf, get_eof_func gef, close_func cf=NULL) |
| tu_file (FILE *fp, bool autoclose) |
| tu_file (SDL_RWops *sdl_stream, bool autoclose) |
| tu_file (const char *name, const char *mode) |
| tu_file (memory_buffer_enum m) |
| tu_file (memory_buffer_enum m, int size, void *data) |
| ~tu_file () |
void | copy_from (tu_file *in) |
void | copy_to (membuf *out) |
int | copy_bytes (tu_file *in, int bytes) |
uint64 | read_le64 () |
uint32_t | read_le32 () |
uint16_t | read_le16 () |
uint64 | read_be64 () |
uint32_t | read_be32 () |
uint16_t | read_be16 () |
void | write_le64 (uint64 u) |
void | write_le32 (uint32_t u) |
void | write_le16 (uint16_t u) |
void | write_be64 (uint64 u) |
void | write_be32 (uint32_t u) |
void | write_be16 (uint16_t u) |
uint8_t | read_byte () |
void | write_byte (uint8_t u) |
int | read_bytes (void *dst, int num) |
int | write_bytes (const void *src, int num) |
void | write_string (const char *src) |
int | read_string (char *dst, int max_length) |
void | write_float32 (float value) |
void | write_double64 (double value) |
float | read_float32 () |
double | read_double64 () |
int | get_position () const |
void | set_position (int p) |
void | go_to_end () |
bool | get_eof () |
int | get_error () |
int | printf (const char *fmt,...) |
void * | get_app_data_DEBUG () |