SimCenterCommon
Common functionality used within different SimCenter projects
ioapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zlib_filefunc_def_s
 

Macros

#define ZLIB_FILEFUNC_SEEK_CUR   (1)
 
#define ZLIB_FILEFUNC_SEEK_END   (2)
 
#define ZLIB_FILEFUNC_SEEK_SET   (0)
 
#define ZLIB_FILEFUNC_MODE_READ   (1)
 
#define ZLIB_FILEFUNC_MODE_WRITE   (2)
 
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)
 
#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
 
#define ZLIB_FILEFUNC_MODE_CREATE   (8)
 
#define ZCALLBACK
 
#define ZREAD(filefunc, filestream, buf, size)   ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
 
#define ZWRITE(filefunc, filestream, buf, size)   ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
 
#define ZTELL(filefunc, filestream)   ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
 
#define ZSEEK(filefunc, filestream, pos, mode)   ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
 
#define ZCLOSE(filefunc, filestream)   ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
 
#define ZERROR(filefunc, filestream)   ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
 

Typedefs

typedef const char * filename
 
typedef const char int mode
 
typedef voidpf stream
 
typedef voidpf void * buf
 
typedef voidpf void uLong size
 
typedef voidpf uLong offset
 
typedef voidpf uLong int origin
 
typedef struct zlib_filefunc_def_s zlib_filefunc_def
 

Functions

typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque
 
typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque
 
typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque
 
typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque
 
void fill_fopen_filefunc OF ((zlib_filefunc_def *pzlib_filefunc_def))
 

Macro Definition Documentation

#define ZCALLBACK

Definition at line 30 of file ioapi.h.

#define ZCLOSE (   filefunc,
  filestream 
)    ((*((filefunc).zclose_file))((filefunc).opaque,filestream))

Definition at line 66 of file ioapi.h.

#define ZERROR (   filefunc,
  filestream 
)    ((*((filefunc).zerror_file))((filefunc).opaque,filestream))

Definition at line 67 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 22 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)

Definition at line 21 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_READ   (1)

Definition at line 17 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 19 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 18 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_CUR   (1)

Definition at line 13 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_END   (2)

Definition at line 14 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_SET   (0)

Definition at line 15 of file ioapi.h.

#define ZREAD (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))

Definition at line 62 of file ioapi.h.

#define ZSEEK (   filefunc,
  filestream,
  pos,
  mode 
)    ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))

Definition at line 65 of file ioapi.h.

#define ZTELL (   filefunc,
  filestream 
)    ((*((filefunc).ztell_file))((filefunc).opaque,filestream))

Definition at line 64 of file ioapi.h.

#define ZWRITE (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))

Definition at line 63 of file ioapi.h.

Typedef Documentation

typedef voidpf const void * buf

Definition at line 39 of file ioapi.h.

typedef const char* filename

Definition at line 38 of file ioapi.h.

typedef const char int mode

Definition at line 38 of file ioapi.h.

typedef voidpf uLong offset

Definition at line 42 of file ioapi.h.

Definition at line 42 of file ioapi.h.

typedef voidpf const void uLong size

Definition at line 39 of file ioapi.h.

typedef voidpf stream

Definition at line 39 of file ioapi.h.

Function Documentation

typedef int ( ZCALLBACK close_file_func)
typedef long ( ZCALLBACK tell_file_func)
void fill_fopen_filefunc OF ( (zlib_filefunc_def *pzlib_filefunc_def)  )
typedef uLong ( ZCALLBACK read_file_func)
typedef voidpf ( ZCALLBACK open_file_func)