13 #define ZLIB_FILEFUNC_SEEK_CUR (1)
14 #define ZLIB_FILEFUNC_SEEK_END (2)
15 #define ZLIB_FILEFUNC_SEEK_SET (0)
17 #define ZLIB_FILEFUNC_MODE_READ (1)
18 #define ZLIB_FILEFUNC_MODE_WRITE (2)
19 #define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)
21 #define ZLIB_FILEFUNC_MODE_EXISTING (4)
22 #define ZLIB_FILEFUNC_MODE_CREATE (8)
27 #if (defined(WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
28 #define ZCALLBACK CALLBACK
62 #define ZREAD(filefunc,filestream,buf,size) ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
63 #define ZWRITE(filefunc,filestream,buf,size) ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
64 #define ZTELL(filefunc,filestream) ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
65 #define ZSEEK(filefunc,filestream,pos,mode) ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
66 #define ZCLOSE(filefunc,filestream) ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
67 #define ZERROR(filefunc,filestream) ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
testerror_file_func zerror_file
Definition: ioapi.h:54
voidpf uLong int origin
Definition: ioapi.h:42
write_file_func zwrite_file
Definition: ioapi.h:50
voidpf void uLong size
Definition: ioapi.h:39
#define ZCALLBACK
Definition: ioapi.h:30
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
voidpf void * buf
Definition: ioapi.h:39
struct zlib_filefunc_def_s zlib_filefunc_def
typedef voidpf(ZCALLBACK *open_file_func) OF((voidpf opaque
read_file_func zread_file
Definition: ioapi.h:49
seek_file_func zseek_file
Definition: ioapi.h:52
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
voidpf opaque
Definition: ioapi.h:55
tell_file_func ztell_file
Definition: ioapi.h:51
close_file_func zclose_file
Definition: ioapi.h:53
voidpf stream
Definition: ioapi.h:39
void fill_fopen_filefunc OF((zlib_filefunc_def *pzlib_filefunc_def))
open_file_func zopen_file
Definition: ioapi.h:48
const char int mode
Definition: ioapi.h:38
voidpf uLong offset
Definition: ioapi.h:42
typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque