tu_file Class Reference

#include <tu_file.h>

List of all members.

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


Member Typedef Documentation

typedef int(* tu_file::close_func)(void *appdata)
 

typedef bool(* tu_file::get_eof_func)(void *appdata)
 

typedef int(* tu_file::read_func)(void *dst, int bytes, void *appdata)
 

typedef int(* tu_file::seek_func)(int pos, void *appdata)
 

typedef int(* tu_file::seek_to_end_func)(void *appdata)
 

typedef int(* tu_file::tell_func)(void *appdata)
 

typedef int(* tu_file::write_func)(const void *src, int bytes, void *appdata)
 


Member Enumeration Documentation

enum tu_file::memory_buffer_enum
 

Enumerator:
memory_buffer 


Constructor & Destructor Documentation

tu_file::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::tu_file FILE *  fp,
bool  autoclose
 

tu_file::tu_file SDL_RWops *  sdl_stream,
bool  autoclose
 

tu_file::tu_file const char *  name,
const char *  mode
 

tu_file::tu_file memory_buffer_enum  m  ) 
 

tu_file::tu_file memory_buffer_enum  m,
int  size,
void *  data
 

tu_file::~tu_file  ) 
 


Member Function Documentation

int tu_file::copy_bytes tu_file in,
int  bytes
 

void tu_file::copy_from tu_file in  ) 
 

void tu_file::copy_to membuf out  ) 
 

void* tu_file::get_app_data_DEBUG  )  [inline]
 

bool tu_file::get_eof  )  [inline]
 

int tu_file::get_error  )  [inline]
 

int tu_file::get_position  )  const [inline]
 

void tu_file::go_to_end  )  [inline]
 

int tu_file::printf const char *  fmt,
  ...
 

uint16_t tu_file::read_be16  )  [inline]
 

uint32_t tu_file::read_be32  )  [inline]
 

uint64 tu_file::read_be64  )  [inline]
 

uint8_t tu_file::read_byte  )  [inline]
 

int tu_file::read_bytes void *  dst,
int  num
[inline]
 

double tu_file::read_double64  ) 
 

float tu_file::read_float32  )  [inline]
 

uint16_t tu_file::read_le16  )  [inline]
 

uint32_t tu_file::read_le32  )  [inline]
 

uint64 tu_file::read_le64  )  [inline]
 

int tu_file::read_string char *  dst,
int  max_length
 

void tu_file::set_position int  p  )  [inline]
 

void tu_file::write_be16 uint16_t  u  )  [inline]
 

void tu_file::write_be32 uint32_t  u  )  [inline]
 

void tu_file::write_be64 uint64  u  )  [inline]
 

void tu_file::write_byte uint8_t  u  )  [inline]
 

int tu_file::write_bytes const void *  src,
int  num
[inline]
 

void tu_file::write_double64 double  value  ) 
 

void tu_file::write_float32 float  value  )  [inline]
 

void tu_file::write_le16 uint16_t  u  )  [inline]
 

void tu_file::write_le32 uint32_t  u  )  [inline]
 

void tu_file::write_le64 uint64  u  )  [inline]
 

void tu_file::write_string const char *  src  ) 
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 23 22:31:33 2006 for Gnash by  doxygen 1.4.6